Frequently Used Docker Commands

Here is the list of frequently used docker commands:
(You can find the full list in the official documentation )

List All Images

docker image ls -a

Remove All images

docker rmi $(docker images -q)

List All Containers

docker ps -aq

Stop All Running Containers

docker stop $(docker ps -a -q)

Remove  All Exited Containers

docker rm $(docker ps -q -f status=exited)

Remove All Running Containers

docker rm -f $(docker ps -a -q)

Remove All Unused Data(Unused containers, Images, Networks and Volumes)

docker system prune

Check Inside A Container

docker ps -aq  (lists all container ids)


docker exec -it    bash
docker exec -it  78ad7c6f87dd  bash


  1. Great Article. Thank you for sharing! Really an awesome post for every one.

    IEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes, while specialists like the enjoyment in interfering with innovation. For experts, it's an alternate ball game through and through. Smaller than expected IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble. Final Year Project Domains for IT It gives you tips and rules that is progressively critical to consider while choosing any final year project point.

    JavaScript Training in Chennai

    JavaScript Training in Chennai


Post a Comment