Could not resolve the host nextcloud.com when trying to install AIO

Hello,

I’m trying to install nextcloud AIO on my home server thats on debian, i tried the first step, running

sudo docker run \
--init \
--sig-proxy=false \
--name nextcloud-aio-mastercontainer \
--restart always \
--publish 80:80 \
--publish 8080:8080 \
--publish 8443:8443 \
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \
--volume /var/run/docker.sock:/var/run/docker.sock:ro \
nextcloud/all-in-one:latest

however it gave me the error Could not resolve the host nextcloud.com., but I can ping nextcloud.com just fine on ssh.

I have tried the following to resolve the issue, but the same error still happens:

  1. adding the --dns=1.1.1.1 (also tried 8.8.8.8, but same thing) flag to the initial docker run command.

  2. made the file /etc/docker/daemon.json with the content being { "dns" : ["8.8.8.8", "8.8.4.4" ] }.

  3. I’ve tried multiple times by completely resetting the AIO instance as per the guide in the github page, I have even tried reinstalling Debian, and even tried to install this on Ubuntu, but the same error pops up

Thanks in advance.

Can you try checking your connectivity and DNS from within a different container? e.g.

docker run --rm -it --name dnstest1 alpine sh

Then run the ping/etc in the container?

Hello, thanks for replying

I tried and i can ping DNS’s ip like 1.1.1.1, 8.8.8.8, 9.9.9.9 just fine, but whenever i tried any url like google.com, youtube.com, nextcloud.com, amazon.com i would get ping: bad address 'youtube.com' even with the --dns=1.1.1.1 flag

Okay a little update here, i tried to run the docker AIO image on an ubuntu WSL on my windows machine connected to the same network and it worked perfectly without any issue… i’m gonna try to reinstall ubuntu yet again and see how it goes

Oh of course it works fine now… :melting_face:

1 Like