How to Remove Volumes in Containers

#- Removing Volumes:-
#- Remove one or more specific volumes – Docker 1.9 and later
Use the docker volume ls command to locate the volume name or names you wish to delete. Then you can remove one or more volumes with the docker volume rm command:



#- Remove a container and its volume

Now, its time for something interesting to help us understand some more commands. We will continue with our example around busybox Image. First up, we will relaunch our container without the -i (interactive) mode.
Give the following command:

#- Give the following command to check out the current running containers

#- We can attach to a running Container via the docker attach command. Let us attach to it:

Post Author: Rohit

2 thoughts on “How to Remove Volumes in Containers


    (August 1, 2017 - 5:28 am)

    Its very helpful for me.

    Kimi Xu

    (August 25, 2017 - 1:38 am)

    I have been looking for an introduction to Docker, which I have found, very well

Leave a Reply

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