Skip to content

Instantly share code, notes, and snippets.

@pallih
Created September 8, 2014 10:33
Show Gist options
  • Save pallih/616849441ef9ba1098cf to your computer and use it in GitHub Desktop.
Save pallih/616849441ef9ba1098cf to your computer and use it in GitHub Desktop.
sudo docker ps -a
sudo docker inspect
# Add
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8001 -j DNAT --to XXXXXXXXXX:8001
# Delete
iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 8001 -j DNAT --to XXXXXXXXXX:8001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment