Skip to content

Fix switch to nonroot user in service-catalog's Dockerfile - #2

Open
skinlayers wants to merge 1 commit into
grafana:mainfrom
skinlayers:main
Open

Fix switch to nonroot user in service-catalog's Dockerfile#2
skinlayers wants to merge 1 commit into
grafana:mainfrom
skinlayers:main

Conversation

@skinlayers

@skinlayers skinlayers commented Aug 4, 2025

Copy link
Copy Markdown

Tested in:

  • Windows 11 + WSL2 + Ubuntu 24.04 + Docker Desktop
  • MacOS X 15.5 + Docker Desktop (Intel & Apple Silicon)

Building the service-catalog image fails when ran locally, due to its Dockerfile referencing a "nonroot" user account that does not exist in the base image. The PR fixes this by using the "nobody" account instead.

$ docker compose -f docker-compose.yaml up --build
[...]
dummy_service-1    | time=2025-08-04T05:23:14.233Z level=ERROR msg="gRPC request handled" service=products source=grpc grpc_service=grpc.ProductService grpc_method=updateProductStock grpc_code=InvalidArgument duration_ms=16
Error response from daemon: unable to find user nonroot: no matching entries in passwd file

@CLAassistant

CLAassistant commented Aug 4, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants