Docker Rootless Setup.

June 16, 2024 - Reading time: ~1 minute

In order to get the external ip address of the visitor to traefik. you need to tell docker the following...

Put the following in a file in ~/.config/systemd/user/docker.service.d/override.conf

You may need to make the docker.service.d directory

[Service] Environment="DOCKERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=slirp4netns"

This is required for docker to pass the client ip address to traefik.

LazyCoderOZ

I am a Linux guy, been around for 20+ years using Linux as my daily driver.
This is my blog on my discoveries and notes so I don't forget how I have done things :)