Skip to main content

Name resolution

Introduction

DNS sucks in docker. However, there are two fixes.

Fix no. 1

Create /etc/docker/daemon.json:

{
  "dns": ["192.168.1.2", "192.168.1.50", "1.1.1.1"]
}
sudo systemctl daemon-reload
sudo systemctl restart docker

 

Fix no. 2