Skip to content

> This known issue for Docker and is discussed in detail here: https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/ #471

@NikolayCharaev

Description

@NikolayCharaev
          > This known issue for Docker and is discussed in detail here: https://development.robinwinslow.uk/2016/06/23/fix-docker-networking-dns/

Simple fix is to create the file /etc/docker/daemon.json

and insert:

{
    "dns": ["10.0.0.2", "8.8.8.8"]
}

where 10.0.0.2 is the first DNS server your machine requests records from, and 8.8.8.8 is the fallback DNS server, google in this case.

Yes! It worked! Thank you!

Originally posted by @nirajkvinit in #270 (comment)

For those who still didn’t help, try adding Cloudflare-dns to the list
{
"dns": ["10.0.0.2", "8.8.8.8", "1.1.1.1"]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions