Saturday, February 7, 2015

Docker registry

the easiest way is to start them as a container.

docker run -d --name=registry -p 5000 -v /tmp/registry:/home/arthur/docker/registry registry
docker run -d --name=registry-ui --link registry:registry -p 8080:8080 -e REG1=http://registry:5000/v1/ atcol/docker-registry-ui

that's it.  you can push your docker image to port 5000 and access the web ui on port 8080.

of course, if it is a production env, you probably don't want to put the docker file on a local file system and docker registry don't have any authentication support.  you will want to use other 3rd solution, e.g. artifactory pro.

No comments:

Post a Comment