docker registry 报“Upload failed, retrying: Received unexpected HTTP status: 500 Internal Server Error”

半兽人 发表于: 2017-05-25   最后更新时间: 2021-09-05 23:23:39   9,539 游览

docker registry 报

Upload failed, retrying: Received unexpected HTTP status: 500 Internal Server Error

我该解决?

发表于 2017-05-25
在线,6分钟前登录

SELinux是一种基于 域-类型 模型(domain-type)的强制访问控制(MAC)安全系统,需要关闭 SELinux

查看SELinux状态:
  1. /usr/sbin/sestatus -v ## 如果SELinux status参数为enabled即为开启状态
     SELinux status:                 enabled  
    
  2. 也可以用这个命令检查
    getenforce
    
关闭SELinux:
  1. 临时关闭(不用重启机器):

    ## 设置SELinux 成为permissive模式 setenforce 1 设置SELinux 成为enforcing模式  
    setenforce 0
    
  2. 修改配置文件需要重启机器:

    修改/etc/selinux/config文件
    SELINUX=enforcing改为SELINUX=disabled
    重启机器即可

你的答案

查看docker相关的其他问题或提一个您自己的问题