Openshift

    [OCP] permission denied, mkdir in container on openshift

    [OCP] permission denied, mkdir in container on openshift

    문제 상황로컬에서는 문제없이 작동하는 Container가 Redhat OpenShift에 올리니까 Permission Deny 에러가 발생했다.Error: EACCES: permission denied, mkdir '/home/node/app/.pm2' 사용한 Dockerfile은 아래와 같다.FROM node:16.14-alpineWORKDIR /home/nodeCOPY . .RUN npm installUSER 1000EXPOSE 8080CMD node server.js  에러 원인By default, OpenShift Container Platform runs containers using an arbitrarily assigned user ID. This provides additional secu..