# Rebuild awx\_task image with custom options

**URL:** <https://forum.ansible.com/t/rebuild-awx-task-image-with-custom-options/30269>\
**Category:** AWX Project\
**Created:** [May 6, 2019, 9:05am UTC](https://forum.ansible.com/t/rebuild-awx-task-image-with-custom-options/30269 "2019-05-06T09:05:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristian.fernandez](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@cristian.fernandez](https://forum.ansible.com/u/cristian.fernandez)\
**Post date:** [May 6, 2019, 9:05am UTC](https://forum.ansible.com/t/rebuild-awx-task-image-with-custom-options/30269/1 "2019-05-06T09:05:21Z")

</div>

Hi all. Im newbie in dokcer and i want know how i can rebuild the awx\_task image with dns options ndots to 1.

---

<div class="post-metadata">

**Author:** ![Uriel](https://avatars.discourse-cdn.com/v4/letter/u/53a042/32.png) [@Uriel](https://forum.ansible.com/u/Uriel)\
**Post date:** [May 6, 2019, 2:45pm UTC](https://forum.ansible.com/t/rebuild-awx-task-image-with-custom-options/30269/2 "2019-05-06T14:45:44Z")

</div>

Look into providing the --dns-opts via docker-compose. I don’t think you’ll need to rebuilt anything, you’ll probably just end up modifying the compose file with extra information

[https://docs.docker.com/config/containers/container-networking/#dns-services](https://docs.docker.com/config/containers/container-networking/#dns-services)  
[https://docs.docker.com/v17.09/engine/userguide/networking/default\_network/configure-dns/](https://docs.docker.com/v17.09/engine/userguide/networking/default_network/configure-dns/)
