Skip to content

Conversation

ziirou
Copy link

@ziirou ziirou commented Sep 4, 2025

Use the same Nginx version (nginx:1.25-alpine) as earlier (Part 12c: Using multiple stages) instead of nginx:1.20.1.

bash is not included in Alpine-based images (like nginx:1.25-alpine).
Got this error:

OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown

Use sh instead of bash: docker exec -it reverse-proxy sh

Use the same Nginx version (`nginx:1.25-alpine`) as earlier (Part 12c: Using multiple stages).
@ziirou
Copy link
Author

ziirou commented Sep 4, 2025

There seems to exist a similar PR already: #4084
So I'll close this one.

@ziirou ziirou closed this Sep 4, 2025
@ziirou ziirou deleted the patch-2 branch September 4, 2025 08:05
@ziirou ziirou restored the patch-2 branch September 4, 2025 08:34
`bash` is not included in the `nginx:1.25-alpine` image.
Got this error:
`OCI runtime exec failed: exec failed: unable to start container process: exec: "bash": executable file not found in $PATH: unknown`

Use `sh` instead of `bash`: `docker exec -it reverse-proxy sh`
@ziirou
Copy link
Author

ziirou commented Sep 4, 2025

I'm opening this again as there were more nginx:1.20.1 used and found out that bash is not included in Alpine-based images.

@ziirou ziirou reopened this Sep 4, 2025
There is no user and hostname visible when using `sh`.
@vejol vejol added the part 12 label Sep 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants