Lysender
Lysender

Reputation: 179

Docker - Is it possible to recreate volume container without recreating the containers that use it

I have created a volume container then created a container that used it, ex:

Then I realized I made a typo on the mounted volumes inside the argus-data container.

Can I just recreate argus-data without recreating all of its dependent containers?

Thanks

Upvotes: 2

Views: 1171

Answers (1)

programmerq
programmerq

Reputation: 6534

The --volumes-from argument is really just a one-time deal. It tells your newly created container to grab any volumes referenced in the existing container you are referring to. Once that new container is created with those volumes, there is no persisting reference to existing container.

Containers volumes can't be changed once the container is created. You'll need to create new containers that refer to the volumes without the typo.

Upvotes: 2

Related Questions