Skip to content

Docker image created as non root, unable to access files when using docker compose with Error: EACCES: permission denied, open '/opt/key.pem'\n #26894

Answered by nellyk
nellyk asked this question in Actions
Discussion options

You must be logged in to vote

Thank you so much for the suggestions.

I eventually went ahead to use ARG and ENV variables and passing them to the docker image depending on what i was using it for
User root for integrations tests
User node for building the image to be distributed

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants