# Why does Traefik v3.6.11 fail with an undefined configfile flag

**URL:** <https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764>\
**Category:** Traefik v3 (latest)\
**Tags:** file, cli\
**Created:** [March 23, 2026, 6:57am UTC](https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764 "2026-03-23T06:57:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dujas](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dujas](https://community.traefik.io/u/dujas)\
**Post date:** [March 23, 2026, 6:57am UTC](https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764/1 "2026-03-23T06:57:11Z")

</div>

I am upgrading traefik from v3.6.9 to v3.6.11 in K8S environment, but the pod failed to be brought up with error as below:

```auto
flag provided but not defined: -configfile
Run with -help to get list of available parameters

```

The output of Traefik pod config is like:

```auto
Containers:
  gateway:
    Container ID: <container_id>
    Image: <repo>
    Image ID: <image_id>
    Ports: <port>
    Host Ports: <port>
    Args:
      --configfile=/etc/traefik/conf/static.yml

```

The config works fine till v3.6.10 but the issue came out when I tried v3.6.11.

I tried binary in my RHEL server, it works fine.

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [March 23, 2026, 6:59am UTC](https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764/2 "2026-03-23T06:59:18Z")

</div>

From the [docs](https://doc.traefik.io/traefik/getting-started/configuration-overview/):

```auto
traefik --configFile=foo/bar/myconfigfile.yml

```

Make sure to have two dashes in front of the param.

If you think it’s a bug, create an issue with the devs at [Traefik Github](https://github.com/traefik/traefik).

---

<div class="post-metadata">

**Author:** ![dujas](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dujas](https://community.traefik.io/u/dujas)\
**Post date:** [March 24, 2026, 1:58am UTC](https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764/3 "2026-03-24T01:58:27Z")

</div>

Thanks for the reply.

I confirmed the template code never changed since very early version until we tried v3.6.11, this error came out.

Will open an issue there.

---

<div class="post-metadata">

**Author:** ![dujas](https://avatars.discourse-cdn.com/v4/letter/d/3da27b/32.png) [@dujas](https://community.traefik.io/u/dujas)\
**Post date:** [March 25, 2026, 2:42am UTC](https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764/4 "2026-03-25T02:42:55Z")

</div>

I can confirm the issue was totally caused by the interrupted docker image while being downloaded. Once I download it again and verify the sum, all passed.

Thanks @bluepuma77 for your time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [March 28, 2026, 2:43am UTC](https://community.traefik.io/t/why-does-traefik-v3-6-11-fail-with-an-undefined-configfile-flag/29764/5 "2026-03-28T02:43:08Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
