Skip to content

Instantly share code, notes, and snippets.

@d0whc3r
Last active April 19, 2018 23:12
Show Gist options
  • Save d0whc3r/39b1535358105b6b29b8b0190381b07d to your computer and use it in GitHub Desktop.
Save d0whc3r/39b1535358105b6b29b8b0190381b07d to your computer and use it in GitHub Desktop.
Centos docker to external internet

Firewall in centOS for docker to connect internet

moby/moby#16137 (comment)

nmcli connection modify docker0 connection.zone trusted
systemctl stop NetworkManager.service
firewall-cmd --permanent --zone=trusted --change-interface=docker0
systemctl start NetworkManager.service
nmcli connection modify docker0 connection.zone trusted
systemctl restart docker.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment