问题描述
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>