# AIO mastercontainer exits with curl: (6) Could not resolve host: ghcr.io, while the same image can reach ghcr.io successfully

**URL:** <https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095>\
**Category:** ℹ️ Support\
**Tags:** docker, aio, dns\
**Created:** [July 18, 2026, 8:39pm UTC](https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095 "2026-07-18T20:39:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![E1000](https://help.nextcloud.com/letter_avatar/e1000/32/6_449c533f586939b6e5f246632a46421f.png) [@E1000](https://help.nextcloud.com/u/E1000)\
**Post date:** [July 18, 2026, 8:39pm UTC](https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095/1 "2026-07-18T20:39:34Z")

</div>

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. ❤

I have spent several weeks debugging this and intentionally excluded the common causes (DNS, firewall, Pi-hole, VPN, Docker DNS, bridge networking).

### Are you using the latest AIO image?

Yes.

Image:

_`ghcr.io/nextcloud-releases/all-in-one:latest`_

Created:

2026-06-26T08:34:24Z

Digest:

sha256:e7abd7c7f4f28ec63971e92fdcb03d361a85cd3e7d83cd50d19c375cad623614

### Host system

Hardware:

- Raspberry Pi 4 (8 GB)

OS:

- Debian GNU/Linux 13 (Trixie)

Kernel:

- 6.18.34+rpt-rpi-v8

Docker:

- Docker Engine Community 29.6.1
- Compose v5.3.0

Storage:

- overlayfs
- Docker Root Dir: /var/lib/docker

### Problem

The AIO mastercontainer immediately exits with

```auto
curl: (6) Could not resolve host: ghcr.io

Could not reach https://ghcr.io.

```

Most likely is something blocking access to it.

### The strange part

Everything else can resolve and reach [ghcr.io](http://ghcr.io).

Host:

```auto
ping ghcr.io

```

works.

Host:

```auto
curl -I https://ghcr.io

```

works.

Container:

```auto
docker run --rm alpine nslookup ghcr.io

```

works.

Container:

```auto
docker run --rm alpine sh -c "apk add --no-cache curl >/dev/null && curl -I https://ghcr.io"

```

works.

Even the SAME AIO image works:

```auto
docker run --rm 
--entrypoint /bin/bash 
ghcr.io/nextcloud-releases/all-in-one:latest 
-c "curl -I https://ghcr.io/v2/"

```

returns HTTP/2 405 successfully.

So the image itself clearly has working DNS/network access.

### Docker DNS

daemon.json

```auto
{
  "dns": [
    "8.8.8.8",
    "1.1.1.1"
  ]
}

```

Host resolv.conf

```auto
nameserver 8.8.8.8
nameserver 1.1.1.1

```

### Docker network

bridge network exists normally.

iptables looks normal.

No custom firewall.

No Pi-hole.

No proxy.

No VPN inside Docker.

Tailscale was stopped during testing.

### Container

Entrypoint:

/start.sh

CMD:

null

NetworkMode:

bridge

### What looks inconsistent

Inside /start.sh the following check exists:

```auto
if ! curl --no-progress-meter https://ghcr.io/v2/ >/dev/null; then

```

This curl reports

```auto
curl: (6) Could not resolve host: ghcr.io

```

However running exactly the same curl manually from the same image succeeds.

So it appears the startup environment behaves differently from a normal shell started from the image.

### Question

Is this a known issue with

- Docker Engine 29.6.x
- Debian 13 (Trixie)
- Raspberry Pi arm64

or is there another reason why curl inside /start.sh cannot resolve _`ghcr.io`_ while the exact same image can?

---

<div class="post-metadata">

**Author:** ![gigabotan](https://help.nextcloud.com/user_avatar/help.nextcloud.com/gigabotan/32/79442_2.png) [@gigabotan](https://help.nextcloud.com/u/gigabotan)\
**Post date:** [August 6, 2026, 12:31am UTC](https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095/2 "2026-08-06T00:31:38Z")

</div>

Hi, have you able to fix you issue? I have the same problem, dns works perfectly everywhere except in nextcloud containters start.

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/6_449c533f586939b6e5f246632a46421f.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [August 6, 2026, 5:47pm UTC](https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095/3 "2026-08-06T17:47:41Z")

</div>

> [@E1000](#):
>
> - Docker Engine Community 29.6.1

Did you recently upgrade the Docker Engine by chance?

There have been DNS resolution problems from time to time; also things like pre-existing containers (pre-engine) needing to be recreated after Engine upgrades to get DNS resolution back, etc.

---

<div class="post-metadata">

**Author:** ![E1000](https://help.nextcloud.com/letter_avatar/e1000/32/6_449c533f586939b6e5f246632a46421f.png) [@E1000](https://help.nextcloud.com/u/E1000)\
**Post date:** [August 8, 2026, 8:40am UTC](https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095/4 "2026-08-08T08:40:10Z")

</div>

**Solved.**

A clean installation of Raspberry Pi OS, Docker 29.6.x and Nextcloud AIO v13.4.0 resolved the issue completely. The DNS resolution problem could no longer be reproduced.

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [August 16, 2026, 8:40am UTC](https://help.nextcloud.com/t/aio-mastercontainer-exits-with-curl-6-could-not-resolve-host-ghcr-io-while-the-same-image-can-reach-ghcr-io-successfully/247095/5 "2026-08-16T08:40:51Z")

</div>

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
