現象描述 使用docker build一個鏡像的時候,提示下麵的錯誤: ➜ docker build t image_name f xxx.dockerfile . error checking context: 'can't stat '/Users/wang/Workspace/db/.gitk ...
現象描述
使用docker build一個鏡像的時候,提示下麵的錯誤:
➜ docker build -t image_name -f xxx.dockerfile .
error checking context: 'can't stat '/Users/wang/Workspace/db/.gitkeep''.
原因
許可權問題造成的,即db這個文件夾,當前build用戶是無權操作的。
解決方式
改成777…或者修改owner就好