docker-engine安装

7 篇文章 0 订阅
4 篇文章 0 订阅


最近一直在使用docker 做一些试验,

每个新机器都需要部署docker的环境。

环境信息如下: RedHat 7.2, 安装 docker官方的安装 docker-engine


1.)
sudo rpm --import"https://sks-keyservers.net/pks/lookup?op=get&search=0xee6d536cf7dc86e2d7d56f59a178ac6c6238f52e"

2.)
sudo yum install -y yum-utils
sudo yum-config-manager --add-repohttps://packages.docker.com/1.10/yum/repo/main/centos/7

3.)
yum install docker-engine

[root@ip-172-30-0-123 ~]# yum info docker*
Loaded plugins: amazon-id, rhui-lb, search-disabled-repos
Installed Packages
Name       
: docker-engine
Arch       
: x86_64
Version    
: 1.10.3.cs3
Release    
: 1.el7.centos
Size       
: 41 M
Repo       
: installed
From repo  
:packages.docker.com_1.10_yum_repo_main_centos_7
Summary    
: The open-source applicationcontainer engine
URL         
: https://dockerproject.org
License    
: ASL 2.0
Description : Docker is an open source project to build, ship and run anyapplication as a
           
: lightweightcontainer.
           
:
           
: Docker containers are bothhardware-agnostic and platform-agnostic. This means
           
: they can run anywhere, fromyour laptop to the largest EC2 compute instance and
           
: everything in between - andthey don't require you to use a particular
           
: language, framework orpackaging system. That makes them great building blocks
           
: for deploying and scalingweb apps, databases, and backend services without
           
: depending on a particularstack or provider.

Name       
: docker-engine-selinux
Arch       
: noarch
Version    
: 1.10.3.cs3
Release    
: 1.el7.centos
Size       
: 43 k
Repo       
: installed
From repo  
:packages.docker.com_1.10_yum_repo_main_centos_7
Summary    
: SELinux Policies for theopen-source application container engine
URL        
: https://dockerproject.org
License    
: GPLv2
Description : SELinux policy modules for use with Docker

[root@ip-172-30-0-123 ~]#




4.)

systemctl enable docker.service
systemctl start docker.service
systemctl status  docker.service


  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值