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

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

且写成 ./文件名称 

 

参考博客:

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

 

Logo

云原生社区为您提供最前沿的新闻资讯和知识内容

更多推荐