docker 私有registry问题(关于 gunicorn命令问题)

问题描述

docker私有registry本地安装没有成功,gunicorn这个命令有问题,注:docker镜像实现registry已经实现。Docker-RegistryisasimplePythonapp,installingitisstraight-forward:gitclonehttps://github.com/dotcloud/docker-registry.gitcddocker-registrycpconfig_sample.ymlconfig.ymlpipinstall-rrequirements.txtgunicorn--access-logfile---log-leveldebug--debug-b0.0.0.0:5000-w1wsgi:application(这一步有问题)

解决方案

解决方案二:
下面是错误代码:root@docker-K42Jr:/home/gzu/docker-registry/requirements#gunicorn--access-logfile---log-leveldebug--debug-b0.0.0.0:5000-w1wsgi:applicationusage:gunicorn[OPTIONS][APP_MODULE]gunicorn:error:unrecognizedarguments:--debugroot@docker-K42Jr:/home/gzu/docker-registry/requirements#gunicorn--access-logfile---log-level--debug-b0.0.0.0:5000-w1wsgi:applicationusage:gunicorn[OPTIONS][APP_MODULE]gunicorn:error:argument--log-level:expectedoneargument
解决方案三:
root@docker-K42Jr:/home/gzu/docker-registry/requirements#gunicorn--access-logfile---log-leveldebug-b0.0.0.0:5000-w1wsgi:application[2014-12-0722:24:06+0000][6307][DEBUG]Currentconfiguration:proxy_protocol:Falseworker_connections:1000statsd_host:Nonemax_requests_jitter:0post_fork:<functionpost_forkat0x7f7e81905f50>pythonpath:Nonesyslog:Falseenable_stdio_inheritance:Falseworker_class:syncssl_version:3suppress_ragged_eofs:Truesyslog_facility:userstatsd_prefix:when_ready:<functionwhen_readyat0x7f7e81905c80>pre_fork:<functionpre_forkat0x7f7e81905de8>cert_reqs:0preload_app:Falseworkers:1keepalive:2accesslog:-sendfile:Trueworker_tmp_dir:Nonegroup:0graceful_timeout:30spew:Falseproc_name:Noneumask:0on_reload:<functionon_reloadat0x7f7e81905b18>post_worker_init:<functionpost_worker_initat0x7f7e8190c140>pre_exec:<functionpre_execat0x7f7e8190c578>limit_request_fields:100on_exit:<functionon_exitat0x7f7e8190cc08>config:Nonelogconfig:Nonepidfile:Nonecheck_config:Falsedo_handshake_on_connect:Falsesecure_scheme_headers:{'X-FORWARDED-PROTOCOL':'ssl','X-FORWARDED-PROTO':'https','X-FORWARDED-SSL':'on'}proxy_allow_ips:['127.0.0.1']pre_request:<functionpre_requestat0x7f7e8190c6e0>post_request:<functionpost_requestat0x7f7e8190c7d0>user:0forwarded_allow_ips:['127.0.0.1']worker_int:<functionworker_intat0x7f7e8190c2a8>threads:1max_requests:0limit_request_line:4094access_log_format:%(h)s%(l)s%(u)s%(t)s"%(r)s"%(s)s%(b)s"%(f)s""%(a)s"certfile:Noneworker_exit:<functionworker_exitat0x7f7e8190c938>chdir:/home/gzu/docker-registry/requirementspaste:Nonedefault_proc_name:wsgi:applicationerrorlog:-loglevel:debugsyslog_addr:udp://localhost:514syslog_prefix:Nonedaemon:Falseciphers:TLSv1on_starting:<functionon_startingat0x7f7e819059b0>worker_abort:<functionworker_abortat0x7f7e8190c410>bind:['0.0.0.0:5000']raw_env:[]reload:Falselimit_request_field_size:8190nworkers_changed:<functionnworkers_changedat0x7f7e8190caa0>timeout:30ca_certs:Nonedjango_settings:Nonetmp_upload_dir:Nonekeyfile:Nonebacklog:2048logger_class:gunicorn.glogging.Logger[2014-12-0722:24:06+0000][6307][INFO]Startinggunicorn19.2.0[2014-12-0722:24:06+0000][6307][DEBUG]Arbiterbooted[2014-12-0722:24:06+0000][6307][INFO]Listeningat:http://0.0.0.0:5000(6307)[2014-12-0722:24:06+0000][6307][INFO]Usingworker:sync[2014-12-0722:24:06+0000][6312][INFO]Bootingworkerwithpid:6312[2014-12-0722:24:06+0000][6307][DEBUG]1workers[2014-12-0722:24:06+0000][6312][ERROR]Exceptioninworkerprocess:Traceback(mostrecentcalllast):File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line517,inspawn_workerworker.init_process()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/workers/base.py",line117,ininit_processself.wsgi=self.app.wsgi()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/base.py",line67,inwsgiself.callable=self.load()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line65,inloadreturnself.load_wsgiapp()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line52,inload_wsgiappreturnutil.import_app(self.app_uri)File"/home/gzu/docker-registry/src/gunicorn/gunicorn/util.py",line355,inimport_app__import__(module)ImportError:NomodulenamedwsgiTraceback(mostrecentcalllast):File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line517,inspawn_workerworker.init_process()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/workers/base.py",line117,ininit_processself.wsgi=self.app.wsgi()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/base.py",line67,inwsgiself.callable=self.load()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line65,inloadreturnself.load_wsgiapp()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line52,inload_wsgiappreturnutil.import_app(self.app_uri)File"/home/gzu/docker-registry/src/gunicorn/gunicorn/util.py",line355,inimport_app__import__(module)ImportError:Nomodulenamedwsgi[2014-12-0722:24:06+0000][6312][INFO]Workerexiting(pid:6312)[2014-12-0722:24:06+0000][6307][INFO]Shuttingdown:Master[2014-12-0722:24:06+0000][6307][INFO]Reason:Workerfailedtoboot.root@docker-K42Jr:/home/gzu/docker-registry/requirements#gunicorn--access-logfile---log-leveldebug-b0.0.0.0:5000-w1wsgi:application[2014-12-0722:31:48+0000][7546][DEBUG]Currentconfiguration:proxy_protocol:Falseworker_connections:1000statsd_host:Nonemax_requests_jitter:0post_fork:<functionpost_forkat0x7f0679283f50>pythonpath:Nonesyslog:Falseenable_stdio_inheritance:Falseworker_class:syncssl_version:3suppress_ragged_eofs:Truesyslog_facility:userstatsd_prefix:when_ready:<functionwhen_readyat0x7f0679283c80>pre_fork:<functionpre_forkat0x7f0679283de8>cert_reqs:0preload_app:Falseworkers:1keepalive:2accesslog:-sendfile:Trueworker_tmp_dir:Nonegroup:0graceful_timeout:30spew:Falseproc_name:Noneumask:0on_reload:<functionon_reloadat0x7f0679283b18>post_worker_init:<functionpost_worker_initat0x7f067928a140>pre_exec:<functionpre_execat0x7f067928a578>limit_request_fields:100on_exit:<functionon_exitat0x7f067928ac08>config:Nonelogconfig:Nonepidfile:Nonecheck_config:Falsedo_handshake_on_connect:Falsesecure_scheme_headers:{'X-FORWARDED-PROTOCOL':'ssl','X-FORWARDED-PROTO':'https','X-FORWARDED-SSL':'on'}proxy_allow_ips:['127.0.0.1']pre_request:<functionpre_requestat0x7f067928a6e0>post_request:<functionpost_requestat0x7f067928a7d0>user:0forwarded_allow_ips:['127.0.0.1']worker_int:<functionworker_intat0x7f067928a2a8>threads:1max_requests:0limit_request_line:4094access_log_format:%(h)s%(l)s%(u)s%(t)s"%(r)s"%(s)s%(b)s"%(f)s""%(a)s"certfile:Noneworker_exit:<functionworker_exitat0x7f067928a938>chdir:/home/gzu/docker-registry/requirementspaste:Nonedefault_proc_name:wsgi:applicationerrorlog:-loglevel:debugsyslog_addr:udp://localhost:514syslog_prefix:Nonedaemon:Falseciphers:TLSv1on_starting:<functionon_startingat0x7f06792839b0>worker_abort:<functionworker_abortat0x7f067928a410>bind:['0.0.0.0:5000']raw_env:[]reload:Falselimit_request_field_size:8190nworkers_changed:<functionnworkers_changedat0x7f067928aaa0>timeout:30ca_certs:Nonedjango_settings:Nonetmp_upload_dir:Nonekeyfile:Nonebacklog:2048logger_class:gunicorn.glogging.Logger[2014-12-0722:31:48+0000][7546][INFO]Startinggunicorn19.2.0[2014-12-0722:31:48+0000][7546][DEBUG]Arbiterbooted[2014-12-0722:31:48+0000][7546][INFO]Listeningat:http://0.0.0.0:5000(7546)[2014-12-0722:31:48+0000][7546][INFO]Usingworker:sync[2014-12-0722:31:48+0000][7551][INFO]Bootingworkerwithpid:7551[2014-12-0722:31:48+0000][7551][ERROR]Exceptioninworkerprocess:Traceback(mostrecentcalllast):File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line517,inspawn_workerworker.init_process()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/workers/base.py",line117,ininit_processself.wsgi=self.app.wsgi()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/base.py",line67,inwsgiself.callable=self.load()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line65,inloadreturnself.load_wsgiapp()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line52,inload_wsgiappreturnutil.import_app(self.app_uri)File"/home/gzu/docker-registry/src/gunicorn/gunicorn/util.py",line355,inimport_app__import__(module)ImportError:NomodulenamedwsgiTraceback(mostrecentcalllast):File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line517,inspawn_workerworker.init_process()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/workers/base.py",line117,ininit_processself.wsgi=self.app.wsgi()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/base.py",line67,inwsgiself.callable=self.load()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line65,inloadreturnself.load_wsgiapp()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line52,inload_wsgiappreturnutil.import_app(self.app_uri)File"/home/gzu/docker-registry/src/gunicorn/gunicorn/util.py",line355,inimport_app__import__(module)ImportError:Nomodulenamedwsgi[2014-12-0722:31:48+0000][7551][INFO]Workerexiting(pid:7551)
解决方案四:
Traceback(mostrecentcalllast):File"/usr/local/bin/gunicorn",line9,in<module>load_entry_point('gunicorn==19.2.0','console_scripts','gunicorn')()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/wsgiapp.py",line74,inrunWSGIApplication("%(prog)s[OPTIONS][APP_MODULE]").run()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/base.py",line189,inrunsuper(Application,self).run()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/app/base.py",line72,inrunArbiter(self).run()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line170,inrunself.manage_workers()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line487,inmanage_workersself.spawn_workers()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line551,inspawn_workerstime.sleep(0.1*random.random())File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line210,inhandle_chldself.reap_workers()File"/home/gzu/docker-registry/src/gunicorn/gunicorn/arbiter.py",line469,inreap_workersraiseHaltServer(reason,self.WORKER_BOOT_ERROR)gunicorn.errors.HaltServer:<HaltServer'Workerfailedtoboot.'3>

时间: 2025-01-06 22:03:11

docker 私有registry问题(关于 gunicorn命令问题)的相关文章

Moving to Docker(二)搭建一个私有registry服务

本文讲的是Moving to Docker(二)搭建一个私有registry服务,[编者的话]本文是<Moving to Docker>系列的第二篇,这个系列的文章讲述了创业公司如何把基础服务迁移到Docker上,以及迁移过程中的经验教训.本文主要介绍了如何安装.测试和使用私有registry服务,其中也包含了从DigitalOcean选VPS和注册Amazon S3服务. 这是迁移到Docker系列的第二篇,整个系列都是介绍我们公司是如何把基础设施从PaaS迁移到Docker的. 第一篇:介

docker私有库搭建过程(Registry)

Registry 实验环境: CentOS7 Docker 1.安装并运行registry 安装: [root@docker01 ~]# docker pull registry Using default tag: latest Trying to pull repository docker.io/library/registry ... latest: Pulling from docker.io/library/registry 79650cf9cc01: Pull complete 7

搭建Docker私有仓库的详细教程

  1.Docker registry 说明 本文记录的个人完整搭建docker registry操作过程,官方虽然提供了Docker Hub作为一个公开的集中仓库,但是天朝的网络可想而知,第一次pull一个镜像不是失败就是时间很长,为了解决这个问题需要创建一个私有的仓库在本地pull 本地push.我使用的docker版本是:1.5.0 2.安装docker-registry 代码如下: docker run -d -e SETTINGS_FLAVOR=dev -e STORAGE_PATH=

deploy owned private docker registry based on docker HUB registry image

docker HUB提供了registry的image, 可以非常方便的搭建私有regisrty. 当然你也可以选择从docker-registry的源码来搭建. 见 : https://github.com/docker/docker-registry 本文主要说一下使用docker registry image搭建私有registry. 1. 首先要部署docker 参考 :  https://docs.docker.com/installation/#installation 2. 启动d

Docker 私有仓库恢复实例详解_docker

Docker 私有仓库恢复 之前openstack平台由于停电等影响,导致之前制作的registry 私有仓库的主机挂掉,还好数据挂载在nfs中,然后现在尝试重新启动恢复. 虚机安装nfs服务 apt-get install -y nfs-common 编辑 /etc/fstab 写入远程挂载地址 10.50.8.12:/export/DockerRepo   /var/lib/docker/registry      nfs    defaults        0 0 然后进行挂载: mou

Docker私服Registry搭建

Docker私服Registry搭建 本文基于docker 1.x,registry 0.7.3 搭建过程主要有: 创建私服镜像Registry 关联本地磁盘和Registry container 启动Registry container 创建私服镜像 docker build -t registry https://git.oschina.net/feedao/Docker_shell/raw/start/Dockerfile-registry 其实也可以直接docker pull regis

Docker入门教程(二)命令

本文讲的是Docker入门教程(二)命令,[编者的话]DockerOne组织翻译了Flux7的Docker入门教程,本文是系列入门教程的第二篇,介绍了Docker的基本命令以及命令的用法和功能. 在Docker系列教程的第一篇文章中,我们了解了Docker的基础知识,知道了它是如何工作以及如何安装的.在这篇文章中,我们将学习15个Docker命令,并通过实践来学习它是如何工作的. 首先,让我们通过下面的命令来检查Docker的安装是否正确: docker info  如果没有找到这条命令,则表示

docker private registry using rados beckend

前提: docker 下载镜像需要连接到 docker.io, 网络原因, 可能被其他国家限制, 也可能由于网速慢, 会导致异常 因此, 常常需要创建一个私有的 docker private registry 用于保存私有镜像或官方镜像, 提供更加方便快捷的下载方法, 省时省力. A. 主机说明 主机 ip地址 作用 sh-storage-128204.sh.vclound.com 10.198.128.204 docker registry sh-storage-128200.sh.vclou

一步步搭建docker私有仓库并从私有仓库中下载镜像

一步步搭建docker私有仓库 #下载镜像 docker pull registry#查看镜像 docker images #运行私有仓库,指定端口和数据卷 docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry docker.io/registry #-d表示后台运行 -p为端口映射 -v为数据卷挂载,宿主机的/opt/data/registry挂载到容器的/tmp/registry下 #访问私有仓库 curl 192.16