Docker push error "413 Request Entity Too Large"

firelyu picture firelyu · Feb 1, 2016 · Viewed 17.5k times · Source

I setup the registry v2 and use nginx as reverse proxy. When I push the image to registy, it error out 413 Request Entity Too Large.

I have modify the client_max_body_size as 20MB in nginx.conf. The push still fails.

client_max_body_size 20M;

What is the body size in docker push? How can I limit the body size?

Answer

Petr picture Petr · Nov 14, 2016

Docker documentation mentions the limit should be turned off:

http {
    ...
    # disable any limits to avoid HTTP 413 for large image uploads
    client_max_body_size 0;
    ...
}