Hi, I tried building an image based on yours which would run as a non-priv user but breaks Traefik.
Traefik log
time="2019-11-30T11:40:00Z" level=error msg="Failed to retrieve information of the docker client and server host: Error response from daemon: <html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>" providerName=docker
time="2019-11-30T11:40:00Z" level=error msg="Provider connection error Error response from daemon: <html><body><h1>503 Service Unavailable</h1>\nNo server is available to handle this request.\n</body></html>, retrying in 462.318748ms" providerName=docker
Dockerfile
FROM tecnativa/docker-socket-proxy
# Create demyx user
RUN set -ex; \
addgroup -g 1000 -S demyx; \
adduser -u 1000 -D -S -G demyx demyx
# Finalize
RUN set -ex; \
touch /tmp/server-state; \
sed -i "s|pidfile /run|pidfile /tmp|g" /usr/local/etc/haproxy/haproxy.cfg; \
sed -i "s|/var/lib/haproxy|/tmp|g" /usr/local/etc/haproxy/haproxy.cfg
USER demyx
Using tecnativa/docker-socket-proxy makes Traefik work but I don't wanna run this container as root with --privileged. Any help is appreciated!
Hi, I tried building an image based on yours which would run as a non-priv user but breaks Traefik.
Traefik log
Dockerfile
Using
tecnativa/docker-socket-proxymakes Traefik work but I don't wanna run this container as root with --privileged. Any help is appreciated!