Articles → DOCKER → How To Connect And Disconnect A Docker Container To A Network
How To Connect And Disconnect A Docker Container To A Network
Network And Containers
- Both containers should be in the same network
- Container should be connected to the network of the other container
Prerequisite
Docker Network Connect Command
docker network connect [network name] [Container name]
Click to Enlarge
Docker Network Disconnect Command
docker network disconnect [network name] [Container name]
Click to Enlarge