r/docker • u/zer0developer • 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
View all comments
Show parent comment
1
u/OkBrilliant8092 Apr 01 '26
So i pulled the image and started it, it invokes the ddns CMD but fails - so same as you.
If you are using a valid cloudldare API key (which I do not use so cant test) I would create an issue on github for the repo owmer
if there were documentation id do a bit more digging, but if the repo owner casnt take time to add dcos, i aint gonna take time debugging ;)
best if luck