Skip to content

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

@linydquantil

Description

@linydquantil

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions