July 2018
Intermediate to advanced
504 pages
11h 34m
English
Run the docker ps command to show that there are no running containers:
$ docker psCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
Run docker ps -a to show both running and stopped containers:
$ docker ps -a
The output of the preceding command will be as shown in the following screenshot:
There are a few things to note here. The STATUS field says that container 5e3820a43ffc exited about one minute ago. In order to get container log information, we can use the docker logs command:
$ docker logs 5e3820a43ffc
The output of the preceding command will be as shown in the following screenshot:
The last message says caught ...