Docker Community Forums

Share and learn in the Docker community.

Docker cp not working

I am running Docker version 1.13.1, build 7f2769b/1.13.1.
I am trying to copy a file from host to the /var/local/ directory of a container. File is not getting copied. But I can copy from host to the /app directory without any issue.
command I am using:
docker cp myfile.txt containername:/var/local/myfile.txt