Docker报错收集

Docker容器做端口映射报错

docker: Error response from daemon: driver failed programming external connectivity on endpoint lamp3 (46b7917c940f7358948e55ec2df69a4dec2c6c7071b002bd374e8dbf0d40022c): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 86 -j DNAT --to-destination 172.17.0.2:80 ! -i docker0: iptables: No chain/target/match by that name.
解决方法
docker服务启动时定义的自定义链DOCKER被清除
重启即可systemctl restart docker

错误2:

docker: Error response from daemon: cannot start a stopped process: unknown.
解决办法
yum install -y libseccomp-devel

错误3:

/usr/bin/docker-current: Error response from daemon: Conflict. The container name “/xxx” is already in use by container e3274a72e8d62a0f3022d3201405ce586147b3031c1232452d001ee41fb9c938. You have to remove (or rename) that container to be able to reuse that name…
解决办法
1、查看所有容器
docker ps -a
2、删除已被占用的镜像名
docker rm [hashCode]

错误4

阿里云 ESC云服务器80/8080端口外网访问失败,现在【安全组】中进行配置
1、登上阿里账号、选择安全组、在点击配置规则
在这里插入图片描述

2、添加安全组规则
在这里插入图片描述

3、完善规则

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/Tomcat_king/article/details/121126087