Beauspiring
Beauspiring

Reputation: 77

In docker, how to change shared folder on running state

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

Answers (1)

yamenk
yamenk

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.

Upvotes: 1

Related Questions