Hello, folks. Latest stable nextcloud apache in docker
installation. Right after installation I found that the
countainer has no connection to the outside world. I can curl
localhost, db, but not any external service. Can’t
Err:1 http://deb.debian.org/debian bullseye InRelease Temporary failure resolving 'deb.debian.org' Err:2 http://deb.debian.org/debian-security bullseye-security InRelease Temporary failure resolving 'deb.debian.org' Err:3 http://deb.debian.org/debian bullseye-updates InRelease Temporary failure resolving 'deb.debian.org' Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. W: Failed to fetch http://deb.debian.org/debian/dists/bullseye/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian-security/dists/bullseye-security/InRelease Temporary failure resolving 'deb.debian.org' W: Failed to fetch http://deb.debian.org/debian/dists/bullseye-updates/InRelease Temporary failure resolving 'deb.debian.org' W: Some index files failed to download. They have been ignored, or old ones used instead.
/etc/resolv.conf of the container:
nameserver 127.0.0.11 options edns0 trust-ad ndots:0
curl -I 192.168.77.30 HTTP/1.1 301 Moved Permanently Server: openresty Date: Mon, 10 Oct 2022 17:12:36 GMT Content-Type: text/html Content-Length: 166 Connection: keep-alive Location: http://192.168.77.30:81
Here I curled host machine lan ip (nginx-proxy-manager runs on this port).
Host machine is running debian 11. docker-compose file:
services: db: image: mariadb:10.5 container_name: nextcloud-db hostname: nas restart: always command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW volumes: - /mnt/media/docker/containers/nextcloud-db:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD= - MYSQL_PASSWORD= - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud app: image: nextcloud:stable container_name: nextcloud hostname: nas restart: always ports: - "51005:80" links: - db depends_on: - db volumes: - /mnt/media/docker/containers/nextcloud:/var/www/html environment: - MYSQL_PASSWORD= - MYSQL_DATABASE=nextcloud - MYSQL_USER=nextcloud - MYSQL_HOST=db - NEXTCLOUD_ADMIN_USER=admin - NEXTCLOUD_ADMIN_PASSWORD= dns: - 188.8.131.52 - 184.108.40.206 - 220.127.116.11 networks: default: name: dockerpub0
Tryed to manualy change nameservers in /etc/resolv.conf to
nameserver 18.104.22.168 nameserver 22.214.171.124
Got no effect. In admin pannel on Logging page I see a lot of:
Error: dns_get_record(): A temporary server error occurred. at /var/www/html/lib/private/Http/Client/DnsPinMiddleware.php#83
I have a dozen containers with the same setup and they all work
fine, all have connection and resolves any address without
problems. Any ideas what could go wrong? As I said it’s a fresh
new container without any legacy data.