docker push 报错:received unexpected HTTP status: 500 Internal Server Error

Posted kaishirenshi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker push 报错:received unexpected HTTP status: 500 Internal Server Error相关的知识,希望对你有一定的参考价值。

解决办法:关闭selinux

[root@k8s-master ~]# docker push 10.0.0.10:5000/nginx
The push refers to a repository [10.0.0.10:5000/nginx]
22439467ad99: Retrying in 1 second 
b4a29beac87c: Retrying in 1 second 
488dfecc21b1: Retrying in 1 second 
received unexpected HTTP status: 500 Internal Server Error
[root@k8s-master ~]# setenforce 0
[root@k8s-master ~]# docker push 10.0.0.10:5000/nginx
The push refers to a repository [10.0.0.10:5000/nginx]
22439467ad99: Pushed 
b4a29beac87c: Pushed 
488dfecc21b1: Pushed 
latest: digest: sha256:62f787b94e5faddb79f96c84ac0877aaf28fb325bfc3601b9c0934d4c107ba94 size: 948
[root@k8s-master ~]# vim /etc/selinux/config 

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected. 
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

 

以上是关于docker push 报错:received unexpected HTTP status: 500 Internal Server Error的主要内容,如果未能解决你的问题,请参考以下文章

git push -u origin main 报错 remote: Invalid username or password.

docker镜像下载出现:received unexpected HTTP status: 500 Internal Server Error

Push 上不允许使用 git-receive-pack

Git push提示pre-receive hook declined

docker push到harbor私有仓库出现的相关问题及解决办法

docker push到harbor私有仓库出现的相关问题及解决办法