其他分享
首页 > 其他分享> > docker push 报错解决

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;

标签:body,pause,nginx,报错,n413,push,docker,size
来源: https://www.cnblogs.com/wanlixin123/p/16458916.html