Flag configuration fails to decode in docker-compose set up

Hi everyone,

I am having an issue where my docker-compose configuration does not work anymore with v2.

 traefik:
    image: docker.io/library/traefik:v2.0.0
    command:
      - --web
      - --accesslog
      - --docker
      - --docker.domain=localhost
      - "--entryPoints=Name:http Address::80"
      - "--entryPoints=Name:https Address::443 TLS"
      - "--tracing.jaeger"
      - "--tracing.jaeger.localagenthostport=jaeger:6831"
    privileged: true
    labels:
      traefik.port: "8080"
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

When trying to run this it throws the following error:

  • command traefik error: failed to decode configuration from flags: field not found, node: docker

Thanks in advance :slight_smile:

Hello,

the v1 configuration is not compatible with v2.

Take a look to the v2 documentation: