安装docker
yum -y install docker-io
启动docker
service docker start
开机启动
systemctl enable docker
查看开始启动是否设置成功:
systemctl list-unit-files|grep docker
设置加速镜像:
vi /etc/docker/daemon.json
{"registry-mirrors": ["http://hub-mirror.c.163.com"]}
安装docker
yum -y install docker-io
启动docker
service docker start
开机启动
systemctl enable docker
查看开始启动是否设置成功:
systemctl list-unit-files|grep docker
设置加速镜像:
vi /etc/docker/daemon.json
{"registry-mirrors": ["http://hub-mirror.c.163.com"]}