黑马商城docker部署部分MySQL拉取超时解决方法
执行命令
docker run -d
–name mysql
-p 3306:3306
-e TZ=Asia/Shanghai
-e MYSQL_ROOT_PASSWORD=123
mysql
出现错误
Unable to find image ‘mysql:latest’ locally
latest: Pulling from library/mysql
6e839ac3722d: Retrying in 1 second
ad912193ad5f: Retrying in 1 second
25d13d87fd8d: Retrying in 1 second
004d383c75ef: Waiting
6d9bbc82a0b8: Waiting
…
docker: error pulling image configuration: download failed after attempts=6: dial tcp 152.125.22.10:453: connect: connection refused.
See ‘docker run --help’.
解决方法
在MobaXterm中编写
修改里面配置文件为如下代码"https://docker.fxxk.dedyn.io"
:wq保存修改
执行下面代码
# 重新加载配置
sudo systemctl daemon-reload
# 重启Docker
sudo systemctl restart docker
最后重新执行拉取mysql代码
原文地址:https://blog.csdn.net/m0_74825409/article/details/144346860
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!