Windows Server 2016 – Docker manage network

Display a list of all the container networks

docker network ls

, <span>Windows Server 2016 – Docker manage network</span>, KandZ

Create a transparent network, instead of using NAT

docker network create -d transparent trans

, <span>Windows Server 2016 – Docker manage network</span>, KandZ

More information about docker network create here.

Run a container with the transparent network

docker run -it --network=trans microsoft/nanoserver powershell

, <span>Windows Server 2016 – Docker manage network</span>, KandZ

To use port-mapping add the -p

docker run -it -p 8080:80 microsoft/nanoserver powershell
# Map TCP port 80 in the container to port 8080 on the Docker host.

, <span>Windows Server 2016 – Docker manage network</span>, KandZ

More information about docker and networking here.

 

32870cookie-checkWindows Server 2016 – Docker manage networkWindows Server 2016 – Docker manage network

Related posts