在centos6中如何安装docker

安装epel源

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo

yum方式安装

yum install docker-io

启动服务

service docker start

修改启动配置

修改私有仓库支持http,修改docker0地址:

vim /etc/init.d/docker
修改start()函数
$exec -d  --insecure-registry harbor.product.co-mall  --bip=172.18.0.1/16   $other_args &>> $logfile &

本文链接:参与评论 »

--EOF--

提醒:本文最后更新于 2488 天前,文中所描述的信息可能已发生改变,请谨慎使用。

Comments