本帖最后由 糖果星球 于 2022-11-6 10:38 编辑
1、更换镜像源apt -y install apt-transport-https ca-certificates curl software-properties-common gnupg2 curl -fsSL https://mirrors.ustc.edu.cn/docker-ce/linux/debian/gpg | apt-key add - add-apt-repository "deb [arch=amd64] https://mirrors.ustc.edu.cn/docker-ce/linux/debian $(lsb_release -cs) stable" 2、检查更新 apt update 3、apt安装docker apt install docker-ce 4、修改Docker国内源 cat >/etc/docker/daemon.json<<EOF { "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn", "http://hub-mirror.c.163.com", "https://registry.docker-cn.com", "https://cr.console.aliyun.com/" } EOF 5、重启Docker服务 systemctl daemon-reload systemctl restart docke 6、配置docker自启动 systemctl enable docke 7、查看Docker加速配置情况 docker info
|