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>
Just a one-liner (similar to @ramu's answer), using root to make the call:
docker exec -u 0 -it chown node:node /home/node/myfile