Unable to copy file from Docker container to host -
$ docker cp maven-container_:xxxx.war /home/wissem/documents/docker-stage/wildfly-configured/target/
error response daemon: lstat /var/lib/docker/aufs/mnt/afbdc7f4ce3165fb2e6c34929841b9fa911de1978887dd5b9b0804e4f624af2d /xxxx.war: no such file or directory
error: job failed: exit status 1
you need copy running instance , not image. assume maven-container_
name of container had launched , not image. use complete path after :
,
docker cp maven-container_:/path/inside/container/xxxx.war /home/wissem/documents/docker-stage/wildfly-configured/target/
Comments
Post a Comment