使用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