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

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM