Plugins/docker fails DNS queries

My Dockerfile which is setup to run a bunch of tests, nslookup and curl fail, but I can have no issue pinging the servers. Has anyone experienced something similar? The gist contains the full output.

FROM davidneudorfer/testkid:0.0.3 (ubuntu with added tools)

RUN ping -c5 8.8.8.8
RUN ping -c5 208.67.222.222
RUN ifconfig
RUN uname -a
RUN cat /etc/resolv.conf
RUN route
RUN ip address
RUN ip route
RUN nslookup google.com
RUN curl -IL google.com
RUN curl ifconfig.me

As soon as I started using my VPC’s private dns things started working

  docker_test:
    image: plugins/docker
    custom_dns: [ 10.10.0.2 ]
1 Like