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

 

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