Created
August 5, 2024 19:58
-
-
Save devonhk/0075036ca840bd94e9a2e7608980a4ea to your computer and use it in GitHub Desktop.
debugging GCR distroless containers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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` |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't need to use the
USER 1000:0instruction since it's already set to a nonroot user.