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

Rootless container #16

Open
ghusta opened this issue Aug 28, 2024 · 2 comments · May be fixed by #19
Open

Rootless container #16

ghusta opened this issue Aug 28, 2024 · 2 comments · May be fixed by #19

Comments

@ghusta
Copy link
Owner

ghusta commented Aug 28, 2024

@ghusta
Copy link
Owner Author

ghusta commented Aug 28, 2024

Example (with docker init) :

# Create a non-privileged user that the app will run under.
# See https://docs.docker.com/go/dockerfile-user-best-practices/
ARG UID=10001
RUN adduser \
    --disabled-password \
    --gecos "" \
    --home "/nonexistent" \
    --shell "/sbin/nologin" \
    --no-create-home \
    --uid "${UID}" \
    appuser
USER appuser

@ghusta
Copy link
Owner Author

ghusta commented Aug 29, 2024

ghusta added a commit that referenced this issue Aug 29, 2024
@ghusta ghusta linked a pull request Aug 29, 2024 that will close this issue
ghusta added a commit that referenced this issue Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant