How to list all running & stopped Docker containers – Linux Shout

Docker is the popular platform to run container virtual machines using the pre-built app images. The installation and its usage are pretty simple, yet, if you are new to it and want to know how to list all the created or stopped Docker containers to delete or manage them easily. Then here are the commands to follow.
Contents
docker ps —option
If you are running multiple Docker containers but want to list only those that are currently active and running then on your command terminal- type:
This will all of the active containers along with other information
command to sahow only running docker container
 
Well, to show all running containers along with those that are created by you earlier but have not been active anymore, we can use -a option with docker’s ps command.
command list all stopped and runnin docker containers
 
If we have a long list of containers but want to see only the latest created ones, then use:
Show only newly created containers
 
last n created containers list
 
show size of all docker containers
 
These were some simple options to use with the Docker PS command. For more details see the official documentation.
 
 
Heyan Maurya Linux
618 Views
Heyan Maurya Debian

Heyan Maurya Linux

Heyan Maurya Linux

document.getElementById( “ak_js_1” ).setAttribute( “value”, ( new Date() ).getTime() );
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Linux Shout crafted as a part of our main portal H2S Media to publish Linux related tutorials and open source Software.

source

Leave a Reply

Your email address will not be published. Required fields are marked *