Docker cp error: Path not specified

2019-01-26 19:43发布

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 

标签: docker cp
1条回答
劫难
2楼-- · 2019-01-26 20:29

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

查看更多
登录 后发表回答