August 2017
Intermediate to advanced
332 pages
9h 16m
English
There are two good reasons to name the container: convenience and the possibility of automation:
For example, we would like to have containers that depend on each other and to have one linked to another. Therefore, we need to know their names.
To name a container, we use the --name parameter:
$ docker run -d --name tomcat tomcat
We can check (by docker ps) that the container has a meaningful name. Also, as a result, any operation can be performed using the container's name, for example: ...
Read now
Unlock full access