Gitea Container Registry

Hey, I’ve tried running the Gitea Container Registry but I can’t push images to it.

My Gitea instance runs in Docker and I use a reverse proxy (Nginx Proxy Manager) to open it to the outside world. Everything works fine except the Container Registry. Docker login succeeds, but when I try to push an image I get this error:

docker push gitea.abc.de/user/docker_webserver:latest
error parsing HTTP 404 response body: invalid character 'N' looking for beginning of value: "Not found.\n"

My nginx additional config:

location / {
        proxy_pass http://$server:$port;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

Checked controlls:

Cache Assets: yes
Block Common Exploits: yes
Websockets Support: yes
Force SSL: yes
HTTP/2 Support: yes
HSTS Enabled: yes
HTST Subdomains: no

Thanks for your help
Best regards Niclas

Hi @Niclas,

Did you find a solution for this problem?

The container registry is not released in a stable version. You are likely using 1.16.x version of Gitea, but the container registry will be released in 1.17.x

2 Likes

It’s not implemented jet. You have wait vor the Release of Version 17. or test it with the current developer Version Docker Tag for that is: dev.

1 Like

In the documentation it shows:

docker push gitea.example.com/{owner}/{image}:{tag}

So when creating the container it needs to be in the same format.

If your gitea address is “localhost:3000”, your user is “owner” and your container is “busybox”, then you should create your container like this:

docker build -t localhost:3000/owner/busybox:latest .