carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
528 stars 424 forks source link

/root permission denied - maven:3.6-jdk-11 #257

Closed SabirAliShaik closed 2 years ago

SabirAliShaik commented 2 years ago

I am using maven:3.6-jdk-11 as base image. I am seeing /root: permission denied error in the container logs. Am i getting this error due to some permissions set by my organization or any issue in the base image. Could you please confirm on this. image

carlossg commented 2 years ago

not sure what's the question/issue?

see how to run as non root https://github.com/carlossg/docker-maven#running-as-non-root-not-supported-on-windows

SabirAliShaik commented 2 years ago

Thanks for replying. I am able to run maven image in one environment. But when i try to run the same in kubernetes, i am getting /root permission denied error. I just want to confirm, is it due environment restrictions i am seeing this error.

carlossg commented 2 years ago

yes, it is environment restrictions