본문 바로가기
Development/Docker

[Docker] iptables: No chain/target/match by that name 에러 해결

by 성딱이 2022. 6. 7.
반응형
1. 상황
(base) JH@JH_COM:~$ docker run -it --rm \
	--gpus all \
                    --runtime=nvidia \
                    -p 8989:8989 \
                    -v "/home/jh:/home/jh" \
                    sjh/tensorflow2:v2.0_1.0 bash
docker: Error response from daemon: driver failed programming external connectivity on endpoint festive_hugle (1ee3de3d317578daa590cfe393512f08277f1483abb46e04c9b68ac83f9ba26d):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8989 -j DNAT --to-destination 172.17.0.2:8989 ! -i docker0: iptables: No chain/target/match by that name. (exit status 1)).

 

2. 원인

조사중....

 

3. 해결방안
# 1. Clear all chains:
$ sudo iptables -t filter -F
$ sudo iptables -t filter -X

# 2. Then restart Docker Service:
$ systemctl restart docker

 

 

참고 : https://stackoverflow.com/questions/31667160/running-docker-container-iptables-no-chain-target-match-by-that-name

 

Running docker container : iptables: No chain/target/match by that name

I'm trying to run a container but I get the following issue : Error response from daemon: Cannot start container b005715c40ea7d5821b15c44f5b7f902d4b39da7c83468f3e5d7c042e5fe3fbd: iptables failed:

stackoverflow.com

 

반응형

댓글