if I remove one container will my volume also get deleted

0 votes
So basically I have two containers both attached to the same volume. I was just wondering if I remove one container will my volume also get deleted?

I do not want the volume to be affected.
Nov 25, 2019 in Docker by Hannah
• 18,060 points
61 views

1 answer to this question.

0 votes

If the volume is being referenced to some other container, it will not be removed. You can remove the container and the check for volume status

docker volume ls

It should still be the same.

answered Nov 25, 2019 by Aria

Related Questions In Docker

0 votes
1 answer

I lose my data when I get out of the container

No its not installation issue. You need to commit the ...READ MORE

answered Jul 26, 2018 in Docker by Kalgi
• 51,890 points
145 views
0 votes
1 answer

How do I get into a Docker container?

docker attach will let you connect to your ...READ MORE

answered Aug 10, 2018 in Docker by Kalgi
• 51,890 points
115 views
0 votes
1 answer

How do I start a Docker container with a volume?

You can first create the volume and ...READ MORE

answered Jul 2, 2019 in Docker by Namik
• 1,210 points
1,361 views
0 votes
1 answer

Why do I get Connection reset by peer when making a request to a service running in a container?

Typically, this message is returned if the ...READ MORE

answered Jul 9, 2019 in Docker by Sirajul
• 54,190 points
1,611 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,530 points
612 views
0 votes
1 answer

Will I lose my data, when a docker container exists?

No, you won’t lose any data when ...READ MORE

answered Jul 30, 2019 in Docker by Kavya
234 views
0 votes
2 answers

How do I start a container and create a volume using a volume driver?

You can first create the volume and ...READ MORE

answered Aug 6, 2019 in Docker by Sirajul
• 54,190 points
176 views