Skip to content

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

@mmarzantowicz

Description

@mmarzantowicz

Step 1:

$ cat docker-compose.yml 
version: "2"

services:
    testnet:
        image: fedora:23
        dns: 192.168.1.1
        command: /bin/bash

Step 2:

$ docker-compose -f docker-compose.yml run testnet

Step 3:

[root@bbd9f61098fb /]# cat /etc/resolv.conf 
search xxx.yyy.tld
nameserver 127.0.0.11
options ndots:0

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions