最近一直在使用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


Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐