Monday, July 2, 2018

Docker error WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: DNS lookup error

While installing docker file, we get DNS lookup error for WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz: DNS lookup error

To fix, add the below dns configuration in/etc/docker/daemon.json
{
    "dns": ["8.8.8.8"]
}

Sometimes the issue also could with your proxy settings, so either add or remove any http_proxy.