dockerfile使用copy报错stat /var/lib/docker/tmp xxxxxxxx  No such file or directory

使用dockerfile的copy报错, stat /var/lib/docker/tmp xxxxxxxx  No such file or directory 

我使用绝对路径来拷贝文件,之后提示报错。不存在该文件解决方法:将要拷贝的文件要在与dockerfile同一目录下

且写成 ./文件名称 

 

参考博客:

https://blog.csdn.net/top_explore/article/details/101020232

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章