Docker Swarm consul 未启动
Docker Swarm consul not starting
当我尝试通过此命令启动 docker consul 时
docker run --restart=unless-stopped -d -p 8500:8500 -h consul progrium/consul -server -bootstrap
它给出了以下错误。
docker: Error response from daemon: driver failed programming external
connectivity on endpoint tiny_bhaskara
(b53c9aa988d96750bfff7c19c6717b18756c7b92287f0f7a4d9e9fa81f42c43d):
iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0
--dport 8500 -j DNAT --to-destination 172.17.0.2:8500 ! -i docker0: iptables: No chain/target/match by that name.
不知道发生了什么!!
来自:
您系统上的某些东西删除了它需要工作的 docker iptables 条目。已建议两个修复 here:
对于 CentOS:
sudo service docker restart
sudo service iptables save
对于Ubuntu:
sudo apt-get install iptables-persistent
sudo service docker restart
iptables-save > /etc/iptables/rules.v4 # you may need to "sudo -s" to get a root shell first
重启docker后,你应该会在nattable:
下看到docker链
iptables -t nat -vL
当我尝试通过此命令启动 docker consul 时
docker run --restart=unless-stopped -d -p 8500:8500 -h consul progrium/consul -server -bootstrap
它给出了以下错误。
docker: Error response from daemon: driver failed programming external connectivity on endpoint tiny_bhaskara (b53c9aa988d96750bfff7c19c6717b18756c7b92287f0f7a4d9e9fa81f42c43d): iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8500 -j DNAT --to-destination 172.17.0.2:8500 ! -i docker0: iptables: No chain/target/match by that name.
不知道发生了什么!!
来自
您系统上的某些东西删除了它需要工作的 docker iptables 条目。已建议两个修复 here:
对于 CentOS:
sudo service docker restart
sudo service iptables save
对于Ubuntu:
sudo apt-get install iptables-persistent
sudo service docker restart
iptables-save > /etc/iptables/rules.v4 # you may need to "sudo -s" to get a root shell first
重启docker后,你应该会在nattable:
下看到docker链iptables -t nat -vL