You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not able to create a non root user , on Centos machine.
I am using the same dockerfile and gosu-entrypoint as yours
The image is built successfull but the logs of the container says "standard_init_linux.go:178: exec user process caused "no such file or directory""
Usually any exec error like this is fairly misleading from the root cause. This is most commonly a missing bash executable. The hashbang in the scripts explicitly use /bin/bash and can probably be replaced with /bin/sh. Give that a try and feel free to submit a PR if that fixes the problem for you. Thanks!
I am not able to create a non root user , on Centos machine.
I am using the same dockerfile and gosu-entrypoint as yours
The image is built successfull but the logs of the container says "standard_init_linux.go:178: exec user process caused "no such file or directory""
Sending build context to Docker daemon 7.168 kB
Step 1/7 : FROM alpine:3.3
---> a6fc1dbfa81a
Step 2/7 : ENV GOSU_VERSION 1.7
---> Using cache
---> e94b96c5b4af
Step 3/7 : RUN set -x && apk add --no-cache --virtual .gosu-deps dpkg gnupg openssl && wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)" && wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc" && export GNUPGHOME="$(mktemp -d)" && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu && rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc && chmod +x /usr/local/bin/gosu && gosu nobody true && apk del .gosu-deps
---> Using cache
---> 1624b54b4714
Step 4/7 : ENV GOSU_USER 0:0
---> Using cache
---> 3fe3522a1fe0
Step 5/7 : COPY entrypoint.sh /
---> b08b74378b98
Removing intermediate container c4e394f06231
Step 6/7 : RUN chmod +x /entrypoint.sh
---> Running in c86e99e70e24
---> 8cbb6b418dd1
Removing intermediate container c86e99e70e24
Step 7/7 : ENTRYPOINT /entrypoint.sh
---> Running in 00e1a2e2ac10
---> bff7b2fa0861
Removing intermediate container 00e1a2e2ac10
Successfully built bff7b2fa0861
[pooja@localhost test]$ docker run -d test
f44eff28519f580adfdb7153b0b5e2291f0ff217220d0731d73a8245ac281662
[pooja@localhost test]$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[pooja@localhost test]$ docker logs f44
standard_init_linux.go:178: exec user process caused "no such file or directory"
Is it something OS specific?
The text was updated successfully, but these errors were encountered: