Docker - Registry is a simple Python app, installing it is straight - forward:
Git clone https://github.com/dotcloud/docker-registry.git
CD docker - registry
Cp config_sample. Yml config. Yml
PIP install - r requirements. TXT
Gunicorn - access logfile - - log level debug - debug - b 0.0.0.0:1 5000 - w wsgi: application (this step is the problem)
CodePudding user response:
Here is the error code:Root @ docker - K42Jr:/home/gzu/docker - registry/requirements# gunicorn - access logfile - - log level debug - debug - b 0.0.0.0:1 5000 - w wsgi: application
Usage: gunicorn [OPTIONS] [APP_MODULE]
Gunicorn: error: unrecognized the arguments: - the debug
Root @ docker - K42Jr:/home/gzu/docker - registry/requirements# gunicorn - access logfile - - log - level - debug - b 0.0.0.0:1 5000 - w wsgi: application
Usage: gunicorn [OPTIONS] [APP_MODULE]
Gunicorn: error: argument - log - level: expected one argument
CodePudding user response:
Root @ docker - K42Jr:/home/gzu/docker - registry/requirements# gunicorn - access logfile - - log level debug - b 0.0.0.0:1 5000 - w wsgi: application
[the 2014-12-07 22:24:06 + 0000] [6307] [the DEBUG] Current configuration:
Proxy_protocol: False
Worker_connections: 1000
Statsd_host: None
Max_requests_jitter: 0
Post_fork: & lt; The function post_fork at 0 x7f7e81905f50 & gt;
The pythonpath: None
Syslog: False
Enable_stdio_inheritance: False
Worker_class: sync
Ssl_version: 3
Suppress_ragged_eofs: True
Syslog_facility: user
Statsd_prefix:
When_ready: & lt; The function when_ready at 0 x7f7e81905c80 & gt;
Pre_fork: & lt; The function pre_fork at 0 x7f7e81905de8 & gt;
Cert_reqs: 0
Preload_app: False
Workers: 1
Keepalive: 2
Accesslog: -
Sendfile: True
Worker_tmp_dir: None
Group: 0
Graceful_timeout: 30
Spew: False
Proc_name: None
Umask: 0
On_reload: & lt; The function on_reload at 0 x7f7e81905b18 & gt;
Post_worker_init: & lt; The function post_worker_init at 0 x7f7e8190c140 & gt;
Pre_exec: & lt; The function pre_exec at 0 x7f7e8190c578 & gt;
Limit_request_fields: 100
On_exit: & lt; The function on_exit at 0 x7f7e8190cc08 & gt;
Config: None
Logconfig: None
Pidfile: None
Check_config: False
Do_handshake_on_connect: False
Secure_scheme_headers: {' X - FORWARDED - PROTOCOL ':' SSL ', 'X - FORWARDED - PROTO' : 'HTTPS', 'X - FORWARDED - SSL' : 'on'}
Proxy_allow_ips: [' 127.0.0.1]
Pre_request: & lt; The function pre_request at 0 x7f7e8190c6e0 & gt;
Post_request: & lt; The function post_request at 0 x7f7e8190c7d0 & gt;
User: 0
Forwarded_allow_ips: [' 127.0.0.1]
Worker_int: & lt; The function worker_int at 0 x7f7e8190c2a8 & gt;
Threads: 1
Max_requests: 0
Limit_request_line: 4094
Access_log_format: % % (l) (h) s (t) s (u) % s % s "% s" (r) % (b) (s) s % s "% s" (f) "% s" (a)
Certfile: None
Worker_exit: & lt; The function worker_exit at 0 x7f7e8190c938 & gt;
Chdir:/home/gzu/docker - registry/requirements
Paste: None
Default_proc_name: wsgi: application
Errorlog: -
Loglevel: debug
Syslog_addr: udp://localhost: 514
Syslog_prefix: None
The daemon: False
Ciphers: TLSv1
On_starting: & lt; The function on_starting at 0 x7f7e819059b0 & gt;
Worker_abort: & lt; The function worker_abort at 0 x7f7e8190c410 & gt;
The bind: [' 0.0.0.0:5000]
Raw_env: []
Reload: False
Limit_request_field_size: 8190
Nworkers_changed: & lt; The function nworkers_changed at 0 x7f7e8190caa0 & gt;
Timeout: 30
Ca_certs: None
Django_settings: None
Tmp_upload_dir: None
Keyfile: None
Backlog: 2048
Logger_class: gunicorn. Glogging. Logger
[the 2014-12-07 22:24:06 + 0000] [6307] [INFO] Starting gunicorn 19.2.0
[the 2014-12-07 22:24:06 + 0000] [6307] [the DEBUG] Arbiter booted
[the 2014-12-07 22:24:06 + 0000] [6307] [INFO] Listening at: http://0.0.0.0:5000 (6307)
[the 2014-12-07 22:24:06 + 0000] [6307] [INFO] Using the worker: sync
[the 2014-12-07 22:24:06 + 0000] [6312] [INFO] Booting worker with pid: 6312
[the 2014-12-07 22:24:06 + 0000] [6307] [the DEBUG] 1 workers
[the 2014-12-07 22:24:06 + 0000] [6312] [ERROR] the Exception in the worker process:
Traceback (the most recent call last) :
The File "/home/gzu/docker - registry/SRC/gunicorn gunicorn/arbiter. Py", line 517, in spawn_worker
Worker. Init_process ()
The File "/home/gzu/docker - registry/SRC/gunicorn gunicorn/workers/base. Py", line 117, in init_process
Self. Wsgi=self. App. Wsgi ()
The File "/home/gzu/docker - registry/SRC/gunicorn/gunicorn/app/base. Py", line 67, in wsgi
Self. Callable=self. The load ()
The File "/home/gzu/docker - registry/SRC/gunicorn/gunicorn/app/wsgiapp. Py", line 65, the load in
Return the self. Load_wsgiapp ()
The File "/home/gzu/docker - registry/SRC/gunicorn/gunicorn/app/wsgiapp. Py", line 52, in load_wsgiapp
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull