docker push received unexpected HTTP status: 503 Service Unavailable
解决方案:
1 关闭selinux 对于服务器开启了 selinux的有效
# getenforce
# setenforce 0
vim /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
2 看看registry 是否开启了ssl,docker 推送非本地的仓库是必须用ssl才可以的,
颁发intermediate certificate,会发现没有crt文件,可以使用如下命令得到:
cat server.pem > server.crt
docker 中增加ssl配置