Créer un site internet

Docker Network Part 2

Network drivers:

bridge: only containers connected to this network can communicate together. Default network driver.

host: the container shares the host's networking namespace and the container does not get his own IP address allocated.

none: All networking are disabled.

1. Create a network myNetwork: 

$docker network create myNetwork

2. Put some machines "studentserver" on that network.

3. ping the studentserver. We can send data to that server.


Add a comment