I am trying to use docker cp to copy .class files from my host to a container. I use the following command:
docker cp foo.class container:/path/foo.class
I do this when the server running inside the container shuts down.
However, I see that foo.class is not updating with my last file, and if I try to execute the rm file, I get
rm: cannot remove foo.class: Stale file handle
Here is my version of docker (Docker for Mac):
docker version Client: Version: 1.13.0 API version: 1.25 Go version: go1.7.3 Git commit: 49bf474 Built: Wed Jan 18 16:20:26 2017 OS/Arch: darwin/amd64 Server: Version: 1.13.0 API version: 1.25 (minimum version 1.12) Go version: go1.7.3 Git commit: 49bf474 Built: Wed Jan 18 16:20:26 2017 OS/Arch: linux/amd64 Experimental: true
Has anyone seen this?
TIA
source share