zoukankan      html  css  js  c++  java
  • docker 在push镜像到本地registry出现的500 Internal Server Error

    ]# docker push 192.168.163.131:5000/test
    The push refers to a repository [192.168.163.131:5000/test]
    9ec45e5f0334: Retrying in 1 second 
    33f1a94ed7fc: Retrying in 1 second 
    b27287a6dbce: Retrying in 1 second 
    47c2386f248c: Retrying in 1 second 
    2be95f0d8a0c: Retrying in 1 second 
    2df9b8def18a: Waiting 
    received unexpected HTTP status: 500 Internal Server Error
    

      查看/var/log/message

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

      

    禁用之后就可以push了

    执行 setenforce 0

  • 相关阅读:
    C++中const变量使用注意
    const对象调用static成员函数
    Error in startup script: value for " " missing
    check tcl version
    socket
    grid pack
    mouse bind
    gesture
    pixel
    open
  • 原文地址:https://www.cnblogs.com/Andrew520/p/11922180.html
Copyright © 2011-2022 走看看