Created
June 16, 2017 15:31
-
-
Save jsturtevant/af82f8f33eb66a64341870da48c7e072 to your computer and use it in GitHub Desktop.
Docker Windows Networking
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
docker network create -d nat jstest | |
docker network ls | |
docker network inspect jstest | |
docker run -itd --name js1 --net=jstest microsoft/nanoserver | |
docker run -itd --name js2 --net=jstest microsoft/nanoserver | |
docker ps | |
docker network inspect jstest | |
docker attach js1 | |
ipconfig | |
ping js2 | |
(Ctrl + p + q) | |
FOR /f "tokens=*" %i IN ('docker ps -q') DO docker stop %i | |
docker network rm jstest | |
docker network rm tdrnet | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment