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
• 17,890 points
38 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,160 points
82 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,160 points
82 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
236 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
• 57,510 points
331 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
86 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
• 46,080 points
65 views