centos7启动docker容器出现iptables错误Error response from daemon解决方式
docker启动容器出现下面错误:
[[email protected] ~]# docker start 103fd0f26448
Error response from daemon: driver failed programming external connectivity on endpoint hyperf (17f678568edf9989d532019de9f3d46896c41097b0f44550536476c979106e54): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9601 -j DNAT --to-destination 172.17.0.2:9601 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))
Error: failed to start containers: 103fd0f26448
解决方式:
重启docker
[[email protected] ~]# systemctl restart docker
[[email protected] ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
103fd0f26448 hyperf/hyperf:7.4-alpine-v3.11-swoole "/bin/sh" 38 minutes ago Created hyperf
[[email protected] ~]# docker start 103fd0f26448
103fd0f26448
[[email protected] ~]# docker version
Client: Docker Engine - Community
Version: 20.10.5
API version: 1.41
Go version: go1.13.15
Git commit: 55c4c88
Built: Tue Mar 2 20:33:55 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.5
API version: 1.41 (minimum version 1.12)
Go version: go1.13.15
Git commit: 363e9a8
Built: Tue Mar 2 20:32:17 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.4
GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e
runc:
Version: 1.0.0-rc93
GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec
docker-init:
Version: 0.19.0
GitCommit: de40ad0
[[email protected] ~]# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
103fd0f26448 hyperf/hyperf:7.4-alpine-v3.11-swoole "/bin/sh" 39 minutes ago Up About a minute 0.0.0.0:9601->9601/tcp hyperf
[[email protected] ~]#
上面是我是安装hyperf框架docker环境出现的问题
完
相关文章