docker-compose does not update resolv.conf
<p>I have the following simplified docker-compose file:</p>

<pre>
version: '2'
services:
    test.base:
        container_name: test.base
        image: docker.pnet.ch/r-base:latest
        restart: on-failure
        networks:
            - mynet
        dns: 192.168.198.2
        dns_search:
            - pext.ch
            - pnet.ch
networks:
    mynet:
        driver: bridge
        driver_opts:
            com.docker.network.enable_ipv4: "true"
        ipam:
            driver: default
            config:
                - subnet: 192.168.198.0/24
                  gateway: 192.168.198.1
</pre>

<p>With this I expect to have the following entries in the containers /etc/resolv.conf:</p>

<pre>
search pext.ch pnet.ch
nameserver 192.168.198.2
</pre>

<p>But instead I have the following:</p>

<pre>
search pext.ch pnet.ch
nameserver 127.0.0.11
options ndots:0
</pre>

<p>When I manually start the container using docker run with --dns 192.168.199.2 /etc/resolv.conf contains a nameserver with the given ip address.</p>

<p>Is there anything wrong with my docker-compose file or is it a bug in docker-compose?</p>

<p>I'm using docker version 1.10.3 on RHEL and docker-compose 1.9.0</p>