docker-windows icon indicating copy to clipboard operation
docker-windows copied to clipboard

s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied

Open Joly0 opened this issue 3 years ago • 2 comments

Docker starts, spits out the error message "s6-mkdir: warning: unable to mkdir /var/run/s6: Permission denied" and dies

Joly0 avatar Jan 10 '22 22:01 Joly0

Hello. I know it has been a while, but try to run the application passing the user root, like: --user=root

antonioanerao avatar Jul 13 '22 18:07 antonioanerao

Hello. I know it has been a while, but try to run the application passing the user root, like: --user=root

Hi, could you please explain it in more detail? I changed the Dockerfile, but the error does not go away.

USER root

# S6 Overlay
RUN curl -J -L -o /tmp/s6-overlay-amd64.tar.gz "https://github.com/just-containers/s6-overlay/releases/download/v$S6_OVERLAY_VERSION/s6-overlay-amd64.tar.gz" \
  && echo -n "Checking md5sum... " \
  && echo "$S6_OVERLAY_MD5HASH /tmp/s6-overlay-amd64.tar.gz" | md5sum -c - \
  && tar xzf /tmp/s6-overlay-amd64.tar.gz -C / \
  && rm /tmp/s6-overlay-amd64.tar.gz

ENTRYPOINT '/init'

hamedsbt avatar Sep 12 '22 08:09 hamedsbt