# Pihole + unbound in docker container with working dhcp service

**URL:** <https://discourse.pi-hole.net/t/pihole-unbound-in-docker-container-with-working-dhcp-service/52842>\
**Category:** Community Help\
**Tags:** docker\
**Created:** [January 21, 2022, 8:14am UTC](https://discourse.pi-hole.net/t/pihole-unbound-in-docker-container-with-working-dhcp-service/52842 "2022-01-21T08:14:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Bucking\_Horn](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/bucking_horn/32/18719_2.png) [@Bucking\_Horn](https://discourse.pi-hole.net/u/Bucking_Horn)\
**Post date:** [January 21, 2022, 11:04am UTC](https://discourse.pi-hole.net/t/pihole-unbound-in-docker-container-with-working-dhcp-service/52842/4 "2022-01-21T11:04:57Z")

</div>

> [@matt777](#):
>
> I tried something with `network_mode: host` so i had to uncomment some `port` lines.

Did you really had them uncommented for host mode?  
You can't use port mapping with Docker's host network mode - the port definitions must be commented (as they seem to be in your config?).

In general, there should be no issues with DHCP in host mode.

Try afresh with a docker-compose that just includes Pi-hole, and work your way from there to combine and cooperate with other services. (_Note that (as far as I am aware of) there is no official `unbound` image, so pick one from a source that you trust and that at least seems to be maintained regularly._)

As combining several services in the same docker-compose is specific to Docker, you should consider to consult Docker's documentation and support as well.

You may also want to consider to search our forum - similar questions have been asked and probably received some valuable feedback that may be applicable to your usage scenario as well.

---

_[View the full topic](https://discourse.pi-hole.net/t/pihole-unbound-in-docker-container-with-working-dhcp-service/52842)._
