Basic Docker bridge network
docker network create mynetwork
Create a container within your network
docker run -d -p 8080:80 --network mynetwork --name myhost nginx
Create a container using the default network
docker run -it tutum/curl bash
Create another container within your network
docker run -it --network mynetwork tutum/curl bash
Disconnect your container from your network
docker network disconnect mynetwork myhost
Connect your container back to your network
docker network disconnect mynetwork myhost