Docker Community Forums

Share and learn in the Docker community.

Possible to remount volumes from image upon redeploy?


(Jvelo) #1


I have a stack on docker cloud with 2 images : the app itself in one, and it’s configuration files exposed as a VOLUME in the other.
After I push new version of the config image (configuration changes), when I redeploy my stack the changes aren’t reflected : the files are still the ones of the initially mounted volume (first mount) ; even when I uncheck the “Reuse existing container volumes” toggle.

Is this by design ? Is there a way around it to so that after a redeploy my exposed volumes reflect the latest available image ? Or is this just the wrong pattern and I should take another approach ?

Thanks in advance for any help,