I've got Drone Stack running on Kontena Platform (Ubuntu 16.04 using Docker CE 17.03.2). For some reason I cannot push the build image to the Kontena Image Registry using docker plugin. It fails to resolve the DNS-name of the Image Registry service (error from the drone logs):
The push refers to a repository [registry.test-grid.kontena.local/frontend]
Put http://registry.test-grid.kontena.local/v1/repositories/frontend/: dial tcp: lookup registry.test-grid.kontena.local on 127.0.0.11:53: no such host
However I can push the image to the Image Repository using VPN.
I've added 'DOCKER_OPTS=--insecure-registry="10.81.0.0/16"' to /etc/systemd/system/docker.service.d/50-kontena.conf in every node.
Any ideas why it tries to use Docker embedded DNS server?