I am having problems with writing files out from inside a docker container to my host computer. I believe this is a privilege issue and prefer not to set privileged: True<
The statement volumes: ['../:/example']
makes the parent directory of the directory containing docker-compose.yml
on the host (../
) visible inside the container at /example
. Host directory bind-mounts like this, plus some equivalent constructs using a named volume attached to a specific host directory, are the only way a container can write out to the host filesystem.