博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
docker 在push镜像到本地registry出现的500 Internal Server Error
阅读量:4286 次
发布时间:2019-05-27

本文共 1193 字,大约阅读时间需要 3 分钟。

在push镜像到本地registry时,出现以下错误:

]# docker push 192.168.163.131:5000/testThe 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

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-abf55211932aMay 16 02:03:58 localhost python: SELinux is preventing /bin/registry from add_name access on the directory docker.*****  Plugin catchall_labels (83.8 confidence) suggests   *******************If you want to allow registry to have add_name access on the docker directoryThen you need to change the label on dockerDo# semanage fcontext -a -t FILE_TYPE 'docker'where FILE_TYPE is one of the following: cgroup_t, container_var_lib_t, nfs_t, svirt_home_t, svirt_sandbox_file_t, virt_home_t. Then execute: restorecon -v 'docker'
将selinux禁用

# setenforce 0# getenforce Permissive
禁用之后就可以push了

转载地址:http://bcxgi.baihongyu.com/

你可能感兴趣的文章
SpringBoot电商项目实战 — ElasticSearch接入实现
查看>>
精选的10款Java开源项目,建议收藏
查看>>
Zookeeper+dubbo分布式开发学习(一)
查看>>
JAVA微信扫码支付及微信App支付开发(模式二)完整功能实现
查看>>
Could not parse multipart servlet request; nested exception is java.io.IOException
查看>>
Java面试题汇总---基础版(附答案)
查看>>
Java面试题汇总---升级版(附答案)
查看>>
分布式文件系统之FastDFS文件服务器原理及搭建
查看>>
linux系统中安装mysql详解
查看>>
Java开发者应该养成的良好习惯
查看>>
微信小程序支付+Java后台实现(完整版)
查看>>
Spring Boot实现分布式微服务开发实战系列(一)
查看>>
Spring Boot实现分布式微服务电商项目开发实战系列(二)
查看>>
SpringBoot+Dubbo实现分布式微服务开发实战系列(三)
查看>>
Spring Boot实现分布式微服务开发实战系列 -- api接口安全
查看>>
Spring Boot实现分布式微服务开发实战系列 -- AOP切面实现及防SQL注入
查看>>
基于Zookeeper的Curator分布式锁实现
查看>>
来谈谈 Java 反射机制,动态代理是基于什么原理?
查看>>
JVM 内存模型
查看>>
SpringBoot Bean
查看>>