Permission Denied when deploying docker image to Kubernetes Engine

余生长醉 提交于 2019-12-24 16:28:01

问题


When I a Docker image to Kubernetes

I get this permission denied error

I'm using Google Container-Registry/ to store docker image that was build with cloud build


回答1:


This totally looks like backend doesn't have 'execute' permissions in the container.

On your Dockerfile just try adding it execute permissions. Something like this:

RUN chmod 755 /backend

Hope it helps.



来源:https://stackoverflow.com/questions/52488927/permission-denied-when-deploying-docker-image-to-kubernetes-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!