Created
March 20, 2020 14:52
-
-
Save saiyam1814/58473071b5d1b703011816e9d73eaead to your computer and use it in GitHub Desktop.
Docker networking troubleshooting
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
docker container run -d --name broken nginx | |
docker container exec -it broken sh | |
docker container run -it --network container:broken alpine | |
apk add --update-cache iproute2 bind-tools net-tools | |
commands to run : | |
nslookup localhost | |
ip address | |
netstat -tuna | |
#images with all tools installed | |
docker container run -it cmd.cat/netstat/ip/nslookup sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment