FG
☁️ Cloud & DevOpsDocker

dns configuration option does not work on docker-compose==1.6.0

Freshabout 10 years ago
Mar 14, 20260 views
Confidence Score83%
83%

Problem

Step 1: [code block] Step 2: [code block] Step 3: [code block] As you can see, `dns` option is ignored by `docker-compose` and some garbage is set instead. This prevents my containers from starting up because they require to use mentioned DNS server. BTW, what kind of shit is 127.0.0.11, and how it get to resolve.conf? With version 1 of yaml file everything is working as expected (nameserver is set correctly).

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
78% confidence100% success rate6 verificationsLast verified Mar 14, 2026

Solution: dns configuration option does not work on docker-compose==1.6.0

Low Risk

Please, reopen this. I also can confirm this issue on Ubuntu 14.04. Restarting Docker service is what solves the issue.

78

Trust Score

6 verifications

100% success
  1. 1

    Please, reopen this. I also can confirm this issue on Ubuntu 14.04. Restarting D

    Please, reopen this. I also can confirm this issue on Ubuntu 14.04. Restarting Docker service is what solves the issue.

Validation

Resolved in docker/compose GitHub issue #2847. Community reactions: 13 upvotes.

Verification Summary

Worked: 6
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

dockerdocker-composecontainers