Docker cp error: Path not specified

送分小仙女□ 提交于 2019-12-18 06:59:44

问题


I want to copy a file from my Ubuntu host to Docker container.

I use Docker 1.6.2 from 14.04 LTS repository.

When I try to copy I get error:

sudo docker cp 1.JPG evil_sammet:/root/openface/training-images/misha/1.jpg
FATA[0000] Error: Path not specified

With equal success, I can type gibberish instead of file name and path:

sudo docker cp sdfsdfasd dfsdffd 
FATA[0000] Error: Path not specified 

回答1:


Version 1.6.2 doesn't allow copying from host to container, you need to upgrade to at least 1.8 for that support.



来源:https://stackoverflow.com/questions/39397831/docker-cp-error-path-not-specified

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!