Increase client_max_body_size in NGINX for docker registry
Error "413 Request Entity Too Large" occurred when push image to docker registry.
To fix this issue, add client_max_body_size
in NGINX configuration file for docker registry as below, then restart NGINX.
server {
listen 443;
server_name hub.bx.net docker.bx.net registry.bx.net dockerhub.bx.net;
location /v2/ {
proxy_pass https://registry.my_bridge/v2/;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
}
client_max_body_size 100M;
}