Reputation: 77
I run my docker container with command blow.
docker run -v /host/folder:/docker/container/folder my_image
If I want to change shared folder, should I restart?
Upvotes: 1
Views: 2080
Reputation: 51896
This has been requested many times, and it is currently not possible. Containers should be ephemeral. You should be able to restart the container again without lose of data.
Check the following issue for more reasons why this is not possible.