Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to use the different base image versions. #179

Open
PositivPy opened this issue Dec 25, 2023 · 1 comment
Open

Clarify how to use the different base image versions. #179

PositivPy opened this issue Dec 25, 2023 · 1 comment

Comments

@PositivPy
Copy link

There seems to be multiple options for the base image. However it is unclear how to use them. Furthermore, the alpine folder image is build from alpine-slim while the Dockerfile in /alpine-slim/ is using the base alpine image.

A clear and concise description of how you should use the alpine-slim version in the docs would be nice.

Furthermore both nginxinc/nginx-unprivileged:1.24.0-alpine-slim and nginxinc/nginx-unprivileged:alpine-slim gives: Error response from daemon: unable to find user www-data (or any other user): no matching entries in passwd file. But using the base nginxinc/nginx-unprivileged works as expected.

@alessfg
Copy link
Collaborator

alessfg commented Jan 2, 2024

Hey @syker-uk!

Both images seem to be running correctly on my end and I can't reproduce your issue. There is supposed to be no user since these are unprivileged images (the system running the container decides what the user is). Are you perhaps changing the default config file?

Re how to use the alpine-slim version, I am not entirely sure we need to add more info? I am not entirely sure what shape that info would take? It's as simple as running docker run -d nginxinc/nginx-unprivileged:1.24.0-alpine-slim -- and I am a bit wary of adding docs re how to use Docker to this repo since this is not the place such docs should live. I can add a little table detailing which tags are available but that's about the extent of what I want to do.

Re how the images are built, I am hoping to do a more detailed write up re how to locally build and test the images, but I don't have a realistic ETA for it. The tl;dr is that the alpine-perl image uses the alpine NGINX image to speed up the build process. Same thing happens between the alpine NGINX image and the alpine-slim image.

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

No branches or pull requests

2 participants