Reputation: 179
I have created a volume container then created a container that used it, ex:
argus-data
argus-app
(used --volumes-from argus-data
)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
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