2
2

More than 5 years have passed since last update.

dockerでiptables failed:

Last updated at Posted at 2017-04-09

ハマったのでメモ

エラー

docker run -it -p 8080:80 nginx /bin/bash
Error response from daemon: Cannot start container  
44c26f4d83f5c819f8c308c5c3deb8f362e76842ebca06de2f4ca0245d92e12e: iptables 
failed: iptables -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-
destination 172.17.0.11:80 ! -i docker0: iptables: No chain/target/match by
that name.

解決法

  • CentOS6
$ sudo service docker restart
  • CentOS7
$ systemctl restart docker

参考:

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2