Skip to content

chore(docker): run containers as non-root and pin base images by digest#252

Open
samcm wants to merge 2 commits into
masterfrom
chore/non-root-containers
Open

chore(docker): run containers as non-root and pin base images by digest#252
samcm wants to merge 2 commits into
masterfrom
chore/non-root-containers

Conversation

@samcm

@samcm samcm commented Jun 12, 2026

Copy link
Copy Markdown
Member

None of the container images set a USER, so they ran as root, and the distroless image used static-debian11:latest (which also defaults to root). All base images used floating :latest tags.

This switches the scratch image to static-debian12:nonroot, adds a dedicated non-root checkpointz user (uid 10001) to the debian and ubuntu images, and pins every base image by digest. The listen and metrics ports (5555/9090) are unprivileged, so dropping root needs no other changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant