Docker环境安装

安装Docker

预先安装额外的依赖

yum install -y docker

启动Docker

systemctl start docker.service

设置开机启动

systemctl enable docker.service

配置DOCKER镜像下载加速

vim /etc/docker/daemon.json
# 在其中加⼊加速镜像源地
{
 "registry-mirrors": ["http://hub-mirror.c.163.com"]
}

检验安装结果

systemctl daemon-reload
systemctl restart docker.service

docker version

posted @ 2020-05-23 09:11  aaaak  阅读(...)  评论(...编辑  收藏