Centos 6.10 Install docker 1.7.2

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hanzheng260561728/article/details/86216058

查询,删除,进入容器

https://blog.csdn.net/hanzheng260561728/article/details/81088848

备份恢复镜像

https://blog.csdn.net/hanzheng260561728/article/details/81084495

第三方源
yum -y install http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

# for another way, change to [enabled=0] and use it only when needed
sed -i -e "s/\]$/\]\npriority=10/g" /etc/yum.repos.d/remi-safe.repo

# if [enabled=0], input a command to use the repository
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/remi-safe.repo

yum --enablerepo=remi-safe install [Package]

安装docker
yum --enablerepo=epel -y install docker-io

启动docker
 /etc/rc.d/init.d/docker start

开机启动docker
chkconfig docker on

猜你喜欢

转载自blog.csdn.net/hanzheng260561728/article/details/86216058