Eigenes repo: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Thomas (Diskussion | Beiträge) |
Thomas (Diskussion | Beiträge) |
||
| Zeile 2: | Zeile 2: | ||
*[[ubuntu paket von docker installieren]] | *[[ubuntu paket von docker installieren]] | ||
=nginx installieren= | =nginx installieren= | ||
| − | *apt-get install nginx | + | * # apt-get install nginx git |
| + | * # git clone https://github.com/docker/docker-registry | ||
| + | * # cp docker-registry/contrib/nginx/nginx_1-3-9.conf /etc/nginx/conf.d/ | ||
| + | * # cp docker-registry/contrib/nginx/docker-registry.conf /etc/nginx/ | ||
| + | =nginx user anlegen= | ||
| + | |||
Version vom 6. März 2015, 11:24 Uhr
vorbereitung
nginx installieren
- # apt-get install nginx git
- # git clone https://github.com/docker/docker-registry
- # cp docker-registry/contrib/nginx/nginx_1-3-9.conf /etc/nginx/conf.d/
- # cp docker-registry/contrib/nginx/docker-registry.conf /etc/nginx/
nginx user anlegen
registry von docker installieren
- GUNICORN_OPTS=[--preload] nur beim ersten start nötig
- docker run -d -e GUNICORN_OPTS=[--preload] -p 5000:5000 registry
auf den clients
- REPOSITORY="tic:5000"
- echo DOCKER_OPTS="\"\$DOCKER_OPTS --insecure-registry $REPOSITORY\"">> /etc/default/docker
- service docker restart
- docker run -d -e GUNICORN_OPTS=[--preload] -p 5000:5000 registry
- http://java.dzone.com/articles/create-your-own-private-docker
- http://blog.docker.com/2013/07/how-to-use-your-own-registry/
- http://stackoverflow.com/questions/24990784/docker-what-is-the-simplest-way-to-secure-a-private-registry
- https://medium.com/@deeeet/building-private-docker-registry-with-basic-authentication-with-self-signed-certificate-using-it-e6329085e612