Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.MD

Docker Tutorial 06

Basic Docker bridge network

Create your network

docker network create mynetwork

Verify your network

docker network ls

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

Resources