From the course: Docker: Your First Project

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Listing containers

Listing containers

- [Instructor] The Docker PS command will list all the running containers on your machine along with additional details such as their names, IDs, image names, status, and ports. If you want to display all containers, including stop containers, use the A option. If this option is omitted, then you will only receive a list of containers that are currently running. The N option allows you to specify a number to show a number of the last created containers, including all states. The Q option displays only the container IDs. The S option displays the total file size of all containers, and the L option shows the last created container. If you want to view the full output, you can use the no trunk option. You can also use the filter option to search for specific containers. Since we added labels to the Big Star Collectibles image, that label is also applied to the container so we can search for any label value. It is useful to…

Contents