Wednesday, April 14, 2021

Docker Default Network Connectivity

*Make sure to set "bridge":"none" in "C:\ProgramData\Docker\config\daemon.json".

And Stop and Start Docker service using Stop-Service Docker and Start-Service Docker. 


Create a docker network using 

docker network create -d "transparent" tnet

make sure it got created

docker network ls

test it by running a sample container

docker run -it --network=tlan mcr.microsoft.com/windows/nanoserver:1903

You will end up on command prompt of the docker. 

run ipconfig and see if it is assigned proper ip by DHCP. 

and run the ping command to validate the internet connectivity.