docker push到本地倉庫失敗

Amei1314發表於2016-07-16

開啟registry的方法:

docker run -d -p 5000:5000 -v /data/registry:/tmp/registry registry

 

出錯內容:

Error: Status 500 trying to push repository mongodb:
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n
<title>500 Internal Server Error</title>\n
<h1>Internal Server Error</h1>\n
<p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p>\n
"

但是卻可以讀:

[root@centos-docker ~]# docker search 172.20.1.13:5000
INDEX     NAME      DESCRIPTION   STARS     OFFICIAL   AUTOMATED

解決辦法:

1.selinux模式為permissive模式 setenforce 0
2.容器啟動,新增--privileged=true

相關文章