carlossg / docker-maven

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

/tmp not writable by non-root users in adoptopenjdk images #255

Closed Rots closed 2 years ago

Rots commented 2 years ago
[rots@XXX~]$ docker run --rm --user 1000:991 --entrypoint mktemp docker.io/maven:3.8-openjdk-11
/tmp/tmp.OQx9856bTt
[rots@XXX~]$ docker run --rm --user 1000:991 --entrypoint mktemp docker.io/maven:3.8-adoptopenjdk-11

mktemp: failed to create file via template ‘/tmp/tmp.XXXXXXXXXX’: Permission denied
carlossg commented 2 years ago

adoptopenjdk is replaced by eclipse temurin

docker run --rm --user 1000:991 --entrypoint mktemp docker.io/maven:3.8-eclipse-temurin-11
/tmp/tmp.Poaae2eZfC