354
That shows your containers, but it only shows you
running containers. After this
example container finishes its work, it shuts down immediately. Therefore, you won’t see
it listed there. However, the container still exists in a sense, and you can see it by adding
an option to the previous command:
docker ps -a
Figure
12-4
shows the result which, if you’ve been following along, should show two
containers in the Exited state.
Figure 12-4. The non-running containers on the system
Do'stlaringiz bilan baham: