docker push 报错解决

[root@localhost ~]# docker push harbor.od.com/wanlx/pause:latest
The push refers to repository [harbor.od.com/wanlx/pause]
5f70bf18a086: Pushed
e16a89738269: Pushing [==================================================>] 239.8kB/239.8kB
error parsing HTTP 413 response body: invalid character '<' looking for beginning of value: "<html>\r\n<head><title>413 Request Entity Too Large</title></head>\r\n<body>\r\n<center><h1>413 Request Entity Too Large</h1></center>\r\n<hr><center>nginx/1.20.1</center>\r\n</body>\r\n</html>\r\n"

 

上传文件太大导致,排查服务器是否有使用nginx做反向代理;(我这里是)

解决方案:

修改nginx配置文件,配置客户端请求大小和缓存大小

vim /etc/nginx/nginx.conf

client_max_body_size 1000;

改为

client_max_body_size 8M;

posted @ 2022-07-08 16:49  万lx  阅读(761)  评论(0)    收藏  举报