18 | | jazz@Workshop:~$ sudo gunicorn --access-logfile - --debug -k gevent -b 0.0.0.0:5000 -w 1 docker_registry.wsgi:application |
| 18 | jazz@Workshop:~$ sudo mkdir -p /var/log/docker-registry |
| 19 | jazz@Workshop:~$ cat > docker-registry.conf << EOF |
| 20 | description "Docker Registry" |
| 21 | |
| 22 | start on runlevel [2345] |
| 23 | stop on runlevel [016] |
| 24 | |
| 25 | respawn |
| 26 | respawn limit 10 5 |
| 27 | |
| 28 | script |
| 29 | exec gunicorn --access-logfile /var/log/docker-registry/access.log --error-logfile /var/log/docker-registry/server.log -k gevent --max-requests 100 --graceful-timeout 3600 -t 3600 -b localhost:5000 -w 8 docker_registry.wsgi:application |
| 30 | end script |
| 31 | EOF |
| 32 | jazz@Workshop:~$ sudo mv docker-registry.conf /etc/init/ |
| 33 | jazz@Workshop:~$ sudo service docker-registry start |