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

/etc/rc.local failed with status 127 #3

Open
linydquantil opened this issue Jan 12, 2021 · 1 comment
Open

/etc/rc.local failed with status 127 #3

linydquantil opened this issue Jan 12, 2021 · 1 comment

Comments

@linydquantil
Copy link

linydquantil commented Jan 12, 2021

my code is copyed from https://github.com/nimmis/docker-alpine/tree/master/3.7

FROM alpine:3.7

COPY rootfs/ /

RUN apk update && apk upgrade && \
    apk add --no-cache --purge -uU ca-certificates supervisor rsyslog bash bash-completion curl openrc nginx jq && \
    chmod +x /my_* && \
    mkdir /etc/my_runonce /etc/my_runalways /etc/container_environment /etc/workaround-docker-2267 /var/log/supervisor && \
    touch /var/log/startup.log && chmod 666 /var/log/startup.log && \
    rm -rf /var/cache/apk/*

# step7 change the timezone to UTC
RUN rm -rf /etc/localtime && ln -sf /usr/share/zoneinfo/UTC /etc/localtime && \
#    rc-update add local default && \
    mkdir -p /run/nginx && \
    addgroup www && \
    adduser -G www -D www && \
    sed -i "s/^user.*;/user  www;/" /etc/nginx/nginx.conf && \
    touch /etc/rc.local && chmod a+x /etc/rc.local

docker logs:
*** open logfile
*** Run files in /etc/my_runonce/
*** Run files in /etc/my_runalways/
*** Running /etc/my_runalways/register_service.sh...
*** Running /etc/rc.local...
*** /etc/rc.local failed with status 127

*** Killing all processes...

@linydquantil
Copy link
Author

@nimmis hi, Excuse me, do you know how to solve this mistake?

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

1 participant