Skip to content
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

Docker Swarm Mode Network Filter Change Issue #2275

Closed
danieladams456 opened this issue Oct 18, 2017 · 1 comment
Closed

Docker Swarm Mode Network Filter Change Issue #2275

danieladams456 opened this issue Oct 18, 2017 · 1 comment

Comments

@danieladams456
Copy link
Contributor

Do you want to request a feature or report a bug?

Bug

What did you do?

Deployed a Docker Swarm service of Traefik

What did you expect to see?

Services to come be discovered and show on the web UI like they did in 1.4.0-rc5-alpine.

What did you see instead?

The web UI is blank. It is not able to enumerate the networks/containers. Logs are posted down below.

Looking at the changelog, it seems like the error is related to #2244

Output of traefik version: (What version of Traefik are you using?)

Version:      v1.4.0
Codename:     roquefort
Go version:   go1.9.1
Built:        2017-10-16_04:52:07PM
OS/Arch:      linux/amd64

What is your environment & configuration (arguments, toml, provider, platform, ...)?

I am using a docker compose stack and specifying the configuration all in the command via a template that is rendered with environment variables at deploy time.

    command:
      - --web
      - --logLevel=DEBUG
      - --accessLog
      - --accessLog.format=json
      - --entryPoints=Name:https Address::443 TLS:/run/secrets/traefik-cert,/run/secrets/traefik-key
      - --defaultEntryPoints=https
      - --docker
      - --docker.swarmmode
      - --docker.watch
      - --docker.domain=redacted.net
      - --forwardingTimeouts.dialTimeout=10s
      - --forwardingTimeouts.responseHeaderTimeout=60s

If applicable, please paste the log output in debug mode (--debug switch)

time="2017-10-18T15:13:11Z" level=debug msg="Provider connection established with docker 1.13.1-cs3 (API 1.27)"
time="2017-10-18T15:13:11Z" level=debug msg="Failed to network inspect on client for docker, error: %sError response from daemon: Invalid filter 'scope'"
time="2017-10-18T15:13:11Z" level=error msg="Failed to list services for docker swarm mode, error Error response from daemon: Invalid filter 'scope'"
time="2017-10-18T15:13:11Z" level=error msg="Provider connection error Error response from daemon: Invalid filter 'scope', retrying in 618.434512ms"

I was not able to reproduce on my 17.09.0-ce laptop, but https://github.com/pistolero/traefik/blob/master/provider/docker/docker.go#L35 says the API version is locked at 1.24 and the docker host is at 1.27, so it should be new enough.

@danieladams456
Copy link
Contributor Author

Sorry I answered my own question: Docker EE only added support in version 17.06

https://docs.docker.com/enterprise/17.06/

Add --filter scope=<swarm|local> to docker network ls #31529

I know it's a good bit of cross-referencing with all the backends, and maybe I missed it, but it would be nice if there was a section of the docs that listed out the minimum requirements so people can know when they can expect a feature to work.

@ldez ldez added kind/question a question and removed status/0-needs-triage labels Oct 18, 2017
@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants