运维系列:Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/y

Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/y




Could not fetch/save url https://download.docker.com/linux/centos/docker-ce.repo to file /etc/yum.re

解决docker在代理下不能拉取镜像

解决方案

如下步骤执行即可,注意proxy的替换

#First, create a systemd drop-in directory for the Docker service:
mkdir /etc/systemd/system/docker.service.d
posted @ 2024-07-31 23:48  坦笑&&life  阅读(152)  评论(0编辑  收藏  举报  来源