I am using a volume when running a docker container with something like docker run --rm --network host --volume $PWD/some_dir:/tmp/some_dir ...
. Inside the container I am running Python code which creates the directory /tmp/some_dir
(overrides it in case it's already there) and puts files into there. If I run the docker container on my local dev machine the files are available on my dev machine in /tmp/some_dir
after running the container.
However if I run the same container as part of a gitlab-ci
job ("docker in docker", the container is not the image used for the job itself) the files are not accessible in /tmp/some_dir
(the directory exists).
What could be a reason for the missing files?