Skip to content

Conversation

@umglurf
Copy link
Contributor

@umglurf umglurf commented Nov 20, 2025

The change done in #19502 can cause problems when for instance using user namespace mappings.
This is because the distroless static image has workdir set to /home/nonroot, owned by the user
nonroot with uid of 65532 and permission of 700. Since the user is changed to
loki with uid 10001, this can cause the startup of container to fail, as there is
no permission to enter the workdir.

@umglurf umglurf requested a review from a team as a code owner November 20, 2025 20:29
@CLAassistant
Copy link

CLAassistant commented Nov 20, 2025

CLA assistant check
All committers have signed the CLA.

The distroless static image has workdir set to /home/nonroot, owned by the user
nonroot with uid of 65532 and permission of 700. Since the user is changed to
loki with uid 1001, this can cause the startup of container to fail, as there is
no permission to enter the workdir.
@fcjack fcjack added type/bug Somehing is not working as expected docker Pull requests that update Docker code backport release-3.6.x labels Nov 21, 2025
@fcjack fcjack merged commit 13f2b1a into grafana:main Nov 21, 2025
72 checks passed
fcjack pushed a commit that referenced this pull request Nov 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport release-3.6.x docker Pull requests that update Docker code size/XS type/bug Somehing is not working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants