in Docker by
How can we identify the status of a container in Docker?

1 Answer

0 votes
by

We can use the Docker container list or ps command to do so. To display all the running containers, we can use the following command:

$ docker ps

To display all the containers in the machine, we can use the following command:

$ Docker ps -a

or

$ docker container ls -a
...