Created
          September 8, 2014 10:33 
        
      - 
      
- 
        Save pallih/616849441ef9ba1098cf to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | 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