Skip to content

Instantly share code, notes, and snippets.

@devonhk
Created August 5, 2024 19:58
Show Gist options
  • Select an option

  • Save devonhk/0075036ca840bd94e9a2e7608980a4ea to your computer and use it in GitHub Desktop.

Select an option

Save devonhk/0075036ca840bd94e9a2e7608980a4ea to your computer and use it in GitHub Desktop.
debugging GCR distroless containers
To debug GCP distroless containers, prefix the image tag with debug.
From `gcr.io/distroless/static-debian11:nonroot` to `gcr.io/distroless/static-debian11:debug-nonroot`
`docker run --rm -it gcr.io/distroless/static-debian11:debug-nonroot`
@devonhk
Copy link
Author

devonhk commented Aug 6, 2024

I don't need to use the USER 1000:0 instruction since it's already set to a nonroot user.

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