Wednesday, March 19, 2014

Docker Registry in a Container on Fedora, Using Docker

In just a few simple steps, you can have an instance of the Docker registry up and running in a Docker container. This one was contributed by Stephen Tweedie. You can get the latest Dockerfiles here:

Tested on Docker 0.8.1 and Fedora 20

Get the version of Docker:

# docker version

To build:

# docker build -rm -t username/registry .

To run:

# docker run -d -p 5000:5000 username/registry

To use a separate data volume for /var/lib/docker-registry (recommended, to allow image update without losing registry contents):

Create a data volume container: (it doesn't matter what image you use here, we'll never run this container again; it's just here to reference the data volume)

# docker run --name=registry-data -v /var/lib/docker-registry fedora true

And now create the registry application container:

# docker run --name=registry -d -p 5000:5000 --volumes-from=registry-data username/registry

Test it...

# docker tag /registry localhost:5000/username/registry
# docker push localhost:5000/username/registry


  1. This web site has over 1,four hundred real-money on-line on line casino games from builders such as Red Tiger Gaming, NetEnt, Playtech, Eyecon, Microgaming, and Booming Games. Casino games are all in regards to the enjoyable, however gamers who play for actual money probably to|are inclined to} always look for the best odds on line casino games. The odds of every recreation determine how a lot payout a participant should count on. You can discover on line casino games impressed by tennis on several of} websites. Those who're concerned in regards to the privateness of 빅카지노 their information can register at no ID verification on line casino.