Skip to content

Expertvision

Lets share our knowledge and remain wise

  • ABOUT
  • Dig Programming
  • Computer Networks
  • Nature Inspired Optimization
  • Databases
  • Automata Theory
  • Research Evaluation
  • Computer Algorithms
  • Cloud Computing
  • Data Structures
  • Blockchain Technology
  • Forum
  • Profile- Dr. Ashish Seth

How to Remove the Containers

1. To get a list of the containers running and find IDs of Container
      $ docker container ls
2. To Stop the particular containing
Syntax
$ docker container stop [container id] 
Ex        $ docker container stop 0b2
[here 0b2 is a partial number from container id, this will also work]         
3. Remove all the stopped containers
     $ docker system prune

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
Expertvision, Create a website or blog at WordPress.com
  • Subscribe Subscribed
    • Expertvision
    • Join 56 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Expertvision
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar