Docker Community Forums

Share and learn in the Docker community.

Standard_init_linux.go:207: exec user process caused "no such file or directory"

I am having an issue with docker build i am trying to make an ntpd image for both arm and amd and the docker files are almost identical to each other . I am able to build for amd but for arm when i am trying to build i am facing an issue below is my docker arm file

FROM base image (Arm based)

COPY ntpd/ /

RUN addgroup --force-badname _ntp
RUN useradd -g _ntp -s /sbin/nologin -d /var/empty -c ‘OpenNTP daemon’ _ntp
RUN mkdir -p /var/empty
RUN chown 0 /var/empty
RUN chgrp 0 /var/empty
RUN chmod 0755 /var/empty
RUN mkdir /usr/local/var; mkdir /usr/local/var/run
RUN touch /usr/local/var/run/ntpd.sock
RUN touch /var/run/ntpd.sock

COPY ntpd.conf /
ADD ntpd.conf /etc/ntpd.conf
ENTRYPOINT ["/ntpd"]
CMD ["-d" ,"-f", “/etc/ntpd.conf”, “-s”]

Do i need to make any changes to the file