# Failed to retrieve information of the docker client and server host error

**URL:** <https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790>\
**Category:** Traefik v3 (latest)\
**Tags:** docker-swarm, docker\
**Created:** [May 18, 2024, 1:57pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790 "2024-05-18T13:57:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/alexus/32/5597_2.png) [@alexus](https://community.traefik.io/u/alexus)\
**Post date:** [May 18, 2024, 1:57pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790/1 "2024-05-18T13:57:56Z")

</div>

hello world 😉

i'm trying to follow:

> **[Traefik Docker Swarm Documentation - Traefik](https://doc.traefik.io/traefik/providers/swarm/#endpoint)**
>
> Learn how to achieve configuration discovery in Traefik through Docker Swarm. Read the technical documentation.

```auto
      - "--providers.swarm.endpoint=tcp://host.docker.internal:2377"

```

yet Traefik unable to reach to `host.docker.internal:23777`

> traefik | 2024-05-18T13:56:04Z ERR [github.com/traefik/traefik/v3/pkg/provider/docker/pswarm.go:89](http://github.com/traefik/traefik/v3/pkg/provider/docker/pswarm.go:89) \> Failed to retrieve information of the docker client and server host error="error during connect: Get "[http://host.docker.internal:2377/v1.24/version\](http://host.docker.internal:2377/v1.24/version%5C)": EOF" providerName=swarm

Please advise)  
Thank you!

---

<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:** [May 18, 2024, 3:11pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790/2 "2024-05-18T15:11:16Z")

</div>

`host.docker.internal` only exists when using Docker Desktop.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/alexus/32/5597_2.png) [@alexus](https://community.traefik.io/u/alexus)\
**Post date:** [May 18, 2024, 3:22pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790/3 "2024-05-18T15:22:08Z")

</div>

what host should be used for docker host?

---

<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:** [May 18, 2024, 3:36pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790/4 "2024-05-18T15:36:05Z")

</div>

The doc you mentioned has all the examples using the Docker socket (`unix:///var/run/docker.sock`). Why would you change to IP address?

Compare to [simple Traefik Swarm example](https://github.com/bluepuma77/traefik-best-practice/tree/main/docker-swarm-traefik). Note it’s old v2 config with `providers.docker`, which is now `providers.swarm`.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/alexus/32/5597_2.png) [@alexus](https://community.traefik.io/u/alexus)\
**Post date:** [May 18, 2024, 3:58pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790/5 "2024-05-18T15:58:41Z")

</div>

I copied it from:

> **[Traefik V3 Migration Documentation - Traefik](https://doc.traefik.io/traefik/v3.0/migration/v2-to-v3/#remediation)**
>
> Migrate from Traefik Proxy v2 to v3 and update all the necessary configurations to take advantage of all the improvements. Read the technical documentation.

but I confirm after changing it to default value, fixed my issue)

thank you so much!

---

<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:** [May 21, 2024, 3:59pm UTC](https://community.traefik.io/t/failed-to-retrieve-information-of-the-docker-client-and-server-host-error/22790/6 "2024-05-21T15:59:22Z")

</div>

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