# Container added to the Service Network but not detected by traefik hub

**URL:** <https://community.traefik.io/t/container-added-to-the-service-network-but-not-detected-by-traefik-hub/14858>\
**Category:** Traefik Hub\
**Tags:** docker-swarm\
**Created:** [June 22, 2022, 8:18pm UTC](https://community.traefik.io/t/container-added-to-the-service-network-but-not-detected-by-traefik-hub/14858 "2022-06-22T20:18:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![strausmann](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/strausmann/32/3056_2.png) [@strausmann](https://community.traefik.io/u/strausmann)\
**Post date:** [June 22, 2022, 8:18pm UTC](https://community.traefik.io/t/container-added-to-the-service-network-but-not-detected-by-traefik-hub/14858/1 "2022-06-22T20:18:09Z")

</div>

Good evening,

first of all thank you for this interesting service and the idea.

I just noticed that Traefik Hub does not notice when you add a container to the service network. It seems that you always have to restart Traefik Hub in order for it to recognize that the container is now accessible from the Traefik container.

Best regards,

Bjoern

---

<div class="post-metadata">

**Author:** ![SantoDE](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/santode/32/393_2.png) [@SantoDE](https://community.traefik.io/u/SantoDE)\
**Post date:** [June 23, 2022, 7:26am UTC](https://community.traefik.io/t/container-added-to-the-service-network-but-not-detected-by-traefik-hub/14858/2 "2022-06-23T07:26:41Z")

</div>

Hey Bjoern,

thanks for the report 🙂 Im actually not sure if that is a Traefik Hub behaviour or a Docker behaviour. Im not sure how the network is bound, when a container enters the network. I would guess, that we just use the information from the docker API and thus, it might require the restart.

Anyways, I'll see if we can dig something up here 👍

---

<div class="post-metadata">

**Author:** ![nicomengin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/nicomengin/32/5507_2.png) [@nicomengin](https://community.traefik.io/u/nicomengin)\
**Post date:** [June 23, 2022, 1:16pm UTC](https://community.traefik.io/t/container-added-to-the-service-network-but-not-detected-by-traefik-hub/14858/3 "2022-06-23T13:16:55Z")

</div>

Hey Bjoern,

Thank you for your interest in Traefik Hub.  
With the team, we haven't been able to reproduce your issue.

Please note that, when you are using Docker Swarm, the service discovery can last up to one minute.  
Can you make it a try by waiting one minute before restarting traefik Hub?

If it still doesn't work, could you share your configuration, please?

Thanks in advance.
