Hello ![]()
I'm new to Traefik, going through the Docker Quick Start: Docker and Traefik Quick Start - Traefik .
What did you do?
When trying to test my setup, I get a 404:
❯ curl http://whoami.localhost
404 page not found
The Traefik service logged an error when I started the Whoami service:
traefik-1 | 2026-02-12T11:09:56Z ERR error="service \"whoami-traefik\" error: port is missing" container=whoami-traefik-a8ad089214719afa6565adcddb17b1c74b99f22147a4c497397c54bcf6ed8488 providerName=docker
According to the documentation for the Docker provider ( Traefik Docker Documentation - Traefik ): "If a container exposes a single port, then Traefik uses this port."
The traefok/whoami:latest image (as of now, latest is v1.11) does expose port 80:
❯ docker inspect --format='{{.Config.ExposedPorts}}' traefik/whoami:latest
map[80/tcp:{}]
I managed to fix my issue by adding this label to the Whoami service: "traefik.http.services.whoami.loadbalancer.server.port=80".
I am not sure if this is a Docker or a Traefik issue.
What did you see instead?
I expected Traefik to detect the port exposed by the Whoami service, and not have to add a label to the Whoami service.
What version of Traefik are you using?
The image is traefik:v3.6.
❯ docker run traefik:v3.6 version
Version: 3.6.8
Codename: ramequin
Go version: go1.25.7
Built: 2026-02-11T16:35:44Z
OS/Arch: linux/arm64
What is your environment & configuration?
❯ docker --version
Docker version 28.3.0, build 38b7060
❯ uname -a
Darwin L437 24.6.0 Darwin Kernel Version 24.6.0: Wed Nov 5 21:28:03 PST 2025; root:xnu-11417.140.69.705.2~1/RELEASE_ARM64_T8122 arm64
Do you have any idea what is happening? Thank you!