Skip to content

Instantly share code, notes, and snippets.

@bouroo
Last active August 20, 2020 16:04
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save bouroo/18a19b33cbdfa55c17a7ea5fc954e3d3 to your computer and use it in GitHub Desktop.
Save bouroo/18a19b33cbdfa55c17a7ea5fc954e3d3 to your computer and use it in GitHub Desktop.
Docker no route to host CentOS
#!/usr/bin/env bash
systemctl stop firewalld
systemctl disable firewalld
iptables --policy INPUT ACCEPT
iptables --policy OUTPUT ACCEPT
iptables --policy FORWARD ACCEPT
iptables -Z
iptables -F
iptables -X
systemctl restart docker
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment