登录阿里云 # 1. 创建配置文件 sudo mkdir -p /etc/docker # 2. 输入配置信息 sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://aq9oemyf.mirror.aliyuncs.com"] } EOF # 3. 重启Docker服务 sudo systemctl daemon-reload sudo systemctl restart docker