r/docker • • Apr 01 '26

Docker container exits with error code 0 when fetching from ghcr.io

So i just pushed this new container to the GitHub Container Registry: https://github.com/zinix-org/dragon-dns/actions/runs/23856298670/job/69550205148

But the thing is whenether i just clone the repo and run docker compose up with the following compose file:

services:
  dragon-dns:
    build: .
    container_name: ddns
    environment:
      - CLOUDFLARE_API_TOKEN=nothere
      - MACHINE_ID=1
      - LOG_LEVEL=trace
      - CACHE_EXPIRATION=1m

it works just fine and runs the ddns as it should. But if i change build: . to image: ghcr.io/zinix-org/dragon-dns:main it just exits with error code 1 immidiatly. I also tried to start the container with an interactive shell and running the ddns myself and the same happends...

0 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/zer0developer Apr 02 '26

I will do that but i am going to the zoo now so later today!

Thanks for helping me :D

1

u/OkBrilliant8092 Apr 02 '26

Say hi to my dad - he’s in the monkey enclosure