docker networking
docker offers the possibility of using an internal network for communication between services.
Creating a Virtual Network in docker
In our demonstrations we will use a virtual network ‘Devprime’ unifying the communication between all the containers used. Use the create command.
- Creating a Devprime Virtual Network
docker network create Devprime
- Listing existing networks
docker network list
- Deleting a virtual network
docker network rm Devprime