Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Created June 16, 2017 15:31
Show Gist options
  • Save jsturtevant/af82f8f33eb66a64341870da48c7e072 to your computer and use it in GitHub Desktop.
Save jsturtevant/af82f8f33eb66a64341870da48c7e072 to your computer and use it in GitHub Desktop.
Docker Windows Networking
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