DEV Community

Cover image for REMOVE COMMANDS IN DOCKER
shiv
shiv

Posted on

 

REMOVE COMMANDS IN DOCKER

Removing the Every Unused:

To remove all stopped containers, dangling images, and unused networks:

         docker system prune

But above command doesn't remove the unused volumes.To Remove unused volume:

       docker system prune --volumes

Removing the Docker Container:

To remove all stopped containers

          docker container prune

To Stop and Remove all Containers

Stop's All Containers

  docker container stop $(docker container ls -aq)

Remove's All Stopped Containers

    docker container rm $(docker container ls -aq)

Removing All Images:

Removes all Dangling Images:

       docker image prune

Removes all Unused Images

      docker image prune -a

Removing All Unused Volumes:

       docker volume prune

Removing all unused network:

    docker network prune

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.