Basic Docker Commands at a Glance

Published on July 28, 2020 13 sec read

HIRE US 🖐
We're available to do freelance project. Take a look at our services!

We should know some basic Docker commands. Let’s have a look.

List of docker images:

docker images

List of running containers:

docker ps

Stop a container:

docker stop [conatiner name/ID]

Delete docker image:

docker rmi -f [image name/ID]

Stop and remove all of the Docker containers:

# stop all
docker stop $(docker ps -a -q)
# delete all
docker rm $(docker ps -a -q)

Author

Hey, I'm Md Obydullah. I build open-source projects and write on Laravel, Linux server, modern JavaScript and more on web development.

Follow

Leave a Reply

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