Last active
August 20, 2020 16:04
-
-
Save bouroo/18a19b33cbdfa55c17a7ea5fc954e3d3 to your computer and use it in GitHub Desktop.
Docker no route to host CentOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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