Skip to content

s6-applyuidgid when downgrading to non-root user #1

Description

@maxamel

Hi, I have a dockerfile which tries downgrading to non-root user and results in this error:

s6-applyuidgid: fatal: unable to set supplementary group list: Operation not permitted

The dockerfile:

FROM woahbase/alpine-lua
WORKDIR /home/alpine
COPY . .
RUN apk add acl curl-dev gcc musl-dev make m4 libffi-dev openssl-dev bsd-compat-headers
RUN luarocks install milua && luarocks install redis-lua && luarocks install lunajson && luarocks install Lua-cURL
RUN chown -hR alpine /run && chown -hR alpine /var/log/ && chown -hR alpine /home/alpine && chown -hR alpine /etc/group
USER alpine
CMD [ "lua", "./src/app.lua" ]

Is there something I'm missing? I also tried creating my user and using the S6 env vars to override the default group/user but that didn't help, and I'd rather keep this simple with the existing alpine user.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions