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,520 points
1,472 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
• 52,350 points
1,643 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
• 52,350 points
779 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,230 points
25,321 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 10, 2019 in Docker by Sirajul
• 59,230 points
4,321 views
+2 votes
1 answer
+2 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
• 58,020 points
2,714 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
8,113 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
• 59,230 points
1,648 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP