Docker push镜像到本地registry出现500 Internal Server Error解决方法

当docker执行push后,提示received unexpected HTTP status: 500 Internal Server Error,解决思路一般是从网络入手。
例如,如下示例,通过查看/var/log/message
发现如下输出:

May 16 02:03:58 localhost setroubleshoot: SELinux is preventing /bin/registry from add_name access on the directory docker. For complete SELinux messages. run sealert -l b73b5d67-41a3-468e-9ccb-abf55211932a
May 16 02:03:58 localhost python: SELinux is preventing /bin/registry from add_name access on the directory docker.

则问题是由于selinux开启造成的,既然是本地测试,直接禁用selinux即可~

以上内容整理摘录自:https://blog.csdn.net/u011085172/article/details/72312435


未经允许不得转载:阿藏博客 » Docker push镜像到本地registry出现500 Internal Server Error解决方法