赞
踩
下载路径:https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/
dpkg -i containerd.io_1.2.6-3_amd64.deb
dpkg -i docker-ce-cli_19.03.9_3-0_ubuntu-xenial_amd64.deb
dpkg -i docker-ce_19.03.9_3-0_ubuntu-xenial_amd64.deb
systemctl start docker
systemctl status docker
docker version
# 设置 docker自动启动
systemctl enable docker.service
# 查看docker 在系统中状态
systemctl list-unit-files |grep docker
# 添加加速镜像
cd /etc
mkdir docker
cd /etc/docker
vim daemon.json
# 将下面复制到daemon.json文件中 https://registry.docker-cn.com
{
"registry-mirrors": ["https://81zkznk0.mirror.aliyuncs.com"]
}
# 重启docker
systemctl restart docker.service
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。