Recreate container on volume configuration change by ndeloof · Pull Request #12363 · docker/compose (original) (raw)
What I did
supersede #12223
- detect actual volume doesn't match configuration
- request user to confirm dropping volume before recreation, until ran with
--yes
- recreate container if the mounted volume is not the expected one
drawbacks:
- anonymous volumes from previous container can't be re-attached to recreated one, as we have to remove container (we miss a
VolumeRename
API)
Related issue
fixes #10060
(not mandatory) A picture of a cute animal, if possible in relation to what you did