October 2017
Intermediate to advanced
326 pages
7h 20m
English
It is also possible to create custom and isolated networks in Docker. This is interesting from the security point of view, as it enables us to segregate different containers on the network level so we can enforce a higher level of access control.
In order to create a network, we just need to execute the following command:
docker network create my-network
And that's it. Well, that is a simplistic approach, but it works as expected. As you know, networking is a complicated subject, so Docker provides options to customize ranges, masks, and other parameters. The user-defined networks are of the type bridge. Once the network is created, you can run new containers in that network, as follows (on a new terminal):
docker run ...
Read now
Unlock full access