Network containers (Engine)
Network containers
If you are working your way through the user guide, you just built and ran a simple application. You’ve also built in your own images. This section teaches you how to network your containers.
Name a container
You’ve already seen that each container you create has an automatically created name; indeed you’ve become familiar with our old friend nostalgic_morse
during this guide. You can also name containers yourself. This naming provides two useful functions:
You can name containers that do specific functions in a way that makes it easier for you to remember them, for example naming a container containing a web application
web
.Names provide Docker with a reference point that allows it to refer to other containers. There are several commands that support this and you’ll use one in an exercise later.
You name your containe