docker build提示error checking context:can't stat xxx

現象描述

使用docker build一個鏡像的時候,提示下面的錯誤:git

➜ docker build -t image_name -f xxx.dockerfile .
error checking context: 'can't stat '/Users/wang/Workspace/db/.gitkeep''.

緣由

權限問題形成的,即db這個文件夾,當前build用戶是無權操做的。docker

解決方式

改爲777…或者修改owner就好ui

相關文章
相關標籤/搜索