展开
拓展 关闭
订阅号推广码
GitHub
视频
公告栏 关闭

docker常见错误

  • 错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen
解决方法:重启docker ->   systemctl restart docker
  • 错误2:启动docker时报错:Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
# 解决方案:检查daemon.json是否配置正确

cd /etc/docker/daemon.json
vi daemon.json               
{ "registry-mirrors": ["https://ubjbax4m.mirror.aliyuncs.com"] }                   
systemctl daemon-reload         
  • 设为开机自启时报错
[root@localhost system]# sudo systemctl enable docker
Failed to execute operation: Access denied
[root@localhost system]# setenforce 0
  • 卸载docker
yum remove docker \
                  docker-client \
                  docker-client-latest \
                  docker-common \
                  docker-latest \
                  docker-latest-logrotate \
                  docker-logrotate \
                  docker-selinux \
                  docker-engine-selinux \
                  docker-engine
posted @ 2022-07-25 17:12  DogLeftover  阅读(44)  评论(0编辑  收藏  举报