From the course: Docker Essential Training

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Creating a simple registry

Creating a simple registry - Docker Tutorial

From the course: Docker Essential Training

Creating a simple registry

- [Instructor] Now that we know a little more about container registries, let's create our own. There are two ways to create a registry. You can either run the registry as a container from Docker's official image, or you can front the registry with a reverse proxy. We're going to learn how to do both, and when to do one or the other. So, let's start with using Docker's official image. First, we're going to want to create the container that will run the registry. We can do that with "docker run --rm," and let's go ahead and call it "registry." Since the registry runs on Port 5000 by default, we need to configure the container to map that port onto our machine. We can easily do this with "-p 5000:5000." Remember: outside, colon, inside. This is pretty anti-climactic because both ports are the same. But if I were to use like 5001, the outside port would be 5001 and the inside port would be 5000. But let's go ahead and…

Contents