-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dashboard does not initialize with --network="host" #5455
Comments
Seems to be from https://github.com/containous/traefik/blob/master/pkg/provider/docker/config.go#L169 Looks like it assumes a container will always have ports defined in the container metadata, but when using host networking nearly all network information is empty? |
Hi @stellirin , this behavior is expected, but not well documented due to the "freshness" of the release 2.0.0. For long term, the team will document the behavior described below so the documentation will be in shape to help you understanding + might work on adapting the behavior for edge cases like this one. In short term, you can make it work by adding the following label: The explanation of the behaviour, as you already figured out by reading the code is:
Hope it helps |
Closed by #5493. |
Thank you very much for the detailed explanation and the workaround. I can confirm that adding the suggested label to the traefik service allows the internal api services to start when using |
#5493 does not fix the issue |
@dduportal I'm having some problems getting traefik 2.0.2 to play well docker swarm. Is there any way to get some clarification on what's traefik's expected behavior is supposed to be when deployed as part of a docker swarm stack? |
Do you want to request a feature or report a bug?
Bug
Did you try using a 1.7.x configuration for the version 2.0?
What did you do?
What did you expect to see?
Dashboard available at
http://traefik.localhost:80
.What did you see instead?
Remove
--network="host"
and Dashboard initializes as expected:Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
If applicable, please paste the log output in DEBUG level (
--log.level=DEBUG
switch)The text was updated successfully, but these errors were encountered: