assistanz
Assistanz

Create Transparent Network in Windows Container

Create Transparent Network in Windows Container

Create Transparent Network in Windows Container

In this blog, we will show you how to create a transparent network in windows container using docker commands.

 

INTRODUCTION

The transparent network allows containers to be on the same network as container host. We need use both PowerShell and docker commands to configure the transparent network for containers.

 

SETTING UP TRANSPARENT NETWORK

  • First, we need to stop the docker service using below command.
stop-service docker

Create Transparent Network in Windows Container

 

  • Delete the existing network before creating the transparent network. Execute the below command.
Get-ContainerNetwork | Remove-ContainerNetwork

Create Transparent Network in Windows Container

 

  • Open C:\ProgramData\docker\config folder.

Create Transparent Network in Windows Container

 

  • Open the daemon.json file and add the below lines.
{
"bridge" : "none"
}

Create Transparent Network in Windows Container

 

  • The above daemon file informs to docker engine that not to built the NAT network while starting the docker service.
  • save and close the file.
  • Start the docker service using start-service docker command.

Create Transparent Network in Windows Container

 

  • There will not be any container network if you execute Get-ContainerNetwork command.

Create Transparent Network in Windows Container

 

CREATING TRANSPARENT NETWORK

  • To create a transparent network, use the below command.
docker network create –d transparent TNET

docker network – Use to create docker networks.

Create – It’s a sub-command to create a network.

-d – which driver to use to create a network. We need to give it as transparent.

TNET – Name for the network.

Create Transparent Network in Windows Container

 

Note : docker network create command is the equivalent to new-containernetwork

 

  • Type Get-ContainerNetwork to the information about the network.

Create Transparent Network in Windows Container

 

  • If we run docker network ls command, you can find network driver information.

Create Transparent Network in Windows Container

 

VERIFYING TRANSPARENT NETWORK

  • Launch new container using the below command.
docker run -it --network=TNET microsoft/nanoserver

 

  • once the container is up and running, type ipconfig to verify the IP settings

Create Transparent Network in Windows Container

 

  • The IP 192.168.233.97 is the physical network in our office. This container got the IP address from the physical DHCP server.

 

  • Also, we will able to ping the internet domain.

Create Transparent Network in Windows Container

 

VIDEO

Thanks for reading this blog. We hope it was useful for you to learn how to configure a transparent network for the container.

DirectAdmin Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk
$ 99 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • NDA & SLA
  • SLA Review Meetings
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation
  •  

Platinum Support

24/7 Proactive Support
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Support

$ 30 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response Time
  • 4 Hours Resolution time for the Possible Issues
  • Security and Performance Optimization
  • React to Customers queries
  • Simple SignUp Process
  • Instant Account Activation
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support

Cpanel Server Management Plans

Premium Support

24/7 End User Support from your Helpdesk

$ 99 Monthly / Server
  • 24/7 End User White Label Support
  • Unlimited Number of Tickets
  • Chat Support for Admin
  • Separate Account Manager
  • Guaranteed SLA
  • Weekly Status Reports
  • FREE Consultancy Services
  • Simple SignUp Process
  • Instant Account Activation

Platinum Support

24/7 Proactive Server Management
$ 49 Monthly / Server
  • Unlimited Support Plan
  • 24/7 Emergency Phone
  • Chat Support for Admin
  • Separate Account Manager
  • Advance Proactive Monitoring
  • Guaranteed SLA
  • SLA Review Meetings
  • 3rd Party Application Support
  • FREE Consultancy Services
  • Server Migration Support
  • Weekly Status Report
  • No End User Support
Popular

Unlimited Support

24/7 Server Management

$ 29 Monthly / Server
  • Unlimited Admin Tasks
  • 24/7 Support
  • Basic Monitoring
  • 30 Minutes Response time
  • 4 hours Response time for possible issues
  • Security and Performance Optimization
  • React to Customers queries
  • No Third party application support
  • No Migration and End User Support