For integration and acceptance testing I want access to data from the container. I would like to use volumes in docker-compose file to specify the relative host path. In many occasions the host path of the volume may need to be auto-created.
Problem
Auto-creation of the host path in a volume appears to be DEPRECATED, as stated in documentation here:
The directory on the host must be specified as an absolute path and if the directory doesn’t exist Docker will automatically create it for you. This auto-creation of the host path has been deprecated.
The documentation does not explain what will be the future behaviour. Will we get an error, or will the volume just not mount? Is there an additional flag to get auto-creation back, etc?
Desired outcome
Thanks!