docker-archive / docker-registry

This is **DEPRECATED**! Please go to https://github.com/docker/distribution
Apache License 2.0
2.88k stars 877 forks source link

[ERROR] Connection in use: ('0.0.0.0', 5000), when i start this service #980

Open netguo opened 9 years ago

netguo commented 9 years ago


sudo docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry

② install docker-registry

$ sudo apt-get install build-essential python-dev libevent-dev python-pip libssl-dev liblzma-dev libffi-dev $ git clone https://github.com/docker/docker-registry.git $ cd docker-registry $ sudo python setup.py install

③ start this service ,but ... sudo gunicorn -c contrib/gunicorn_config.py docker_registry.wsgi:application [2015-03-31 20:29:41 +0000] [23724] [INFO] Starting gunicorn 19.1.1 [2015-03-31 20:29:41 +0000] [23724] [ERROR] Connection in use: ('0.0.0.0', 5000) [2015-03-31 20:29:41 +0000] [23724] [ERROR] Retrying in 1 second. [2015-03-31 20:29:42 +0000] [23724] [ERROR] Connection in use: ('0.0.0.0', 5000) [2015-03-31 20:29:42 +0000] [23724] [ERROR] Retrying in 1 second. [2015-03-31 20:29:43 +0000] [23724] [ERROR] Connection in use: ('0.0.0.0', 5000) [2015-03-31 20:29:43 +0000] [23724] [ERROR] Retrying in 1 second. [2015-03-31 20:29:44 +0000] [23724] [ERROR] Connection in use: ('0.0.0.0', 5000) [2015-03-31 20:29:44 +0000] [23724] [ERROR] Retrying in 1 second. [2015-03-31 20:29:45 +0000] [23724] [ERROR] Connection in use: ('0.0.0.0', 5000) [2015-03-31 20:29:45 +0000] [23724] [ERROR] Retrying in 1 second. [2015-03-31 20:29:46 +0000] [23724] [ERROR] Can't connect to ('0.0.0.0', 5000)

dmp42 commented 9 years ago

So, you are starting the registry at step 1 inside a container, then install and start it system-wide as well?

Why do that?

dmp42 commented 9 years ago

Put otherwise.

You just need to:

sudo docker run -d -p 5000:5000 -v /opt/data/registry:/tmp/registry registry

That's enough.