Error when publishing to Docker registry: 413 Request Entity Too Large

Sebastian Berlin via Wikitech-l <[email protected]> Thu, 19 Mar 2026 13:55:04 +0100
Newsgroups gmane.science.linguistics.wikipedia.technical
Message-ID <CAHGrn4yY6f+4Q_yremt4Ks_M5U1+u1R_+VfkRRJYhSmtcjcbWg@mail.gmail.com>
I'm trying to publish a Docker image at
https://docker-registry.wikimedia.org/ following the instructions at Deploying
services to production
<https://www.mediawiki.org/wiki/GitLab/Workflows/Deploying_services_to_production>.
It looks like the image builds as it should, but then there's an error (full
log
<https://gitlab.wikimedia.org/repos/mediawiki/services/speechoid/matcha/-/jobs/771518>
):

> #16 ERROR: failed to push
> docker-registry.discovery.wmnet/repos/mediawiki/services/speechoid/matcha:test-b7e4a32:
> unexpected status from PUT request to
> https://docker-registry.discovery.wmnet/v2/repos/mediawiki/services/speechoid/matcha/blobs/uploads/ab87089c-f9d1-47fb-b756-4dc773a50449?_state=Q1lBsebeKZ7wgLhhzT-HWzG2JUVj-W3yXray9GCc1Yd7Ik5hbWUiOiJyZXBvcy9tZWRpYXdpa2kvc2VydmljZXMvc3BlZWNob2lkL21hdGNoYSIsIlVVSUQiOiJhYjg3MDg5Yy1mOWQxLTQ3ZmItYjc1Ni00ZGM3NzNhNTA0NDkiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMjYtMDMtMTlUMTI6Mzg6MzIuNjgyMzMyMzg4WiJ9&digest=sha256%3A3d78f1b01c7463b02b8b60212c0b030cbb87816e8fe7b4cf1a49f85e93f5dfe8:
> 413 Request Entity Too Large: <html>
> <head><title>413 Request Entity Too Large</title></head>
> <body>
> <center><h1>413 Request Entity Too Large</h1></center>
> <hr><center>nginx/1.22.1</center>
> </body>
> </html>
>

As I read it this means the resulting Docker image is to big to be
published. If that's the case, what is the size limit? According to `docker
images` locally the image is 9.27GB, which I suppose is quite big. I don't
have enough experience with Docker to know what's reasonable.

*Sebastian Berlin*
Utvecklare/*Developer*
Wikimedia Sverige (WMSE)

E-post/*E-Mail*: [email protected]
Telefon/*Phone*: (+46) 0707 - 92 03 84

_______________________________________________
Wikitech-l mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/