Currently, the specification for the Config.Volumes declares the following:
If a file or folder exists within the image with the same path as a data volume, that file or folder will be replaced by the data volume and never be merged.
There are many possible behaviors for interacting with volumes that may make sense in practice. One may want to replace the volume data, seed it from the image or merge it from the image and the specification should not prevent this.
Please see the conversation at https://github.com/opencontainers/image-spec/pull/492/files/418573051225cd705be4414a249acd1fbf76db25#r117839121 for further details.
Currently, the specification for the
Config.Volumesdeclares the following:There are many possible behaviors for interacting with volumes that may make sense in practice. One may want to replace the volume data, seed it from the image or merge it from the image and the specification should not prevent this.
Please see the conversation at https://github.com/opencontainers/image-spec/pull/492/files/418573051225cd705be4414a249acd1fbf76db25#r117839121 for further details.