I want to copy a folder from docker container to my machine. I'm looking at this question.
So here is my command:
sudo docker cp 2f6aca7f2748:/root/scripts/ .
I got the following error:
mkdir /home/***/scripts: permission denied
I try mkdir scripts
, and it is OK (of course). What could be the problem here?
Update
Some more context: I'm using a NIS account, shared between both my desktop and server. However, docker is in the server, and I want to copy folder from host to my local folder on server.