Docker container does port mapping error
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.
Solution
The custom chain DOCKER defined when the docker service starts is cleared
and restarted systemctl restart docker
Error 2:
docker: Error response from daemon: cannot start a stopped process: unknown.
解决办法
yum install -y libseccomp-devel
Error 3:
/usr/bin/docker-current: Error response from daemon: Conflict. The container name “/xxx” is already in use by container e3274a72e8d62a0f3022d3201405ce586147b3031c1232452d001ee41fb9c938. You h ave to remove (or rename) that container to be able to reuse that name…
solve Method
1. View all containers
docker ps -a
2. Delete the occupied image name
docker rm [hashCode]
error 4
Aliyun ESC cloud server port 80/8080 external network access failed, now configure it in the [Security Group]
1. Log in to the Ali account, select the security group, and click Configure Rules
2. Add security group rules
3. Improve the rules