CentOS 7
1
2
3
4
5
6
7
8
|
tee
/etc/yum
.repos.d
/docker
.repo <<-
'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https:
//yum
.dockerproject.org
/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https:
//yum
.dockerproject.org
/gpg
EOF
|
1
2
3
|
yum -y
install
docker-engine
systemctl
enable
docker.service
systemctl start docker
|
本文转自 rong341233 51CTO博客,原文链接:http://blog.51cto.com/fengwan/1865843