How can I control which user owns the files I copy in and out of a container?
The docker cp command says this about file ownership:
The cp>
cp>
You can also change the ownership by logging in as root user into the container :
docker exec -it --user root /bin/bash chown -R :