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 in Docker by Hannah
• 17,060 points
21 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 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
• 45,780 points
71 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
• 45,780 points
72 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 in Docker by Namik
• 1,210 points
159 views
0 votes
1 answer
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
• 56,960 points
251 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 in Docker by Kavya
63 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 in Docker by Sirajul
• 40,980 points
42 views