I have a directory /home/foo/mydir owned by foo:foo (uid=1040) that I bind mount in the alpine docker image as such: docker run -it --rm -v /home
/home/foo/mydir
foo:foo
docker run -it --rm -v /home