Private Registry Setup with Docker Registry
Intermediate · 30 minutes · 100 points
In this hands-on lab, you will set up and configure a private Docker registry using the official Docker Registry image. You will learn how to run a local registry, push and pull images, inspect registry contents, and configure basic authentication to secure your registry. This foundational skill is essential for managing container images in private or air-gapped environments.
What you’ll learn
- Deploy a private Docker registry container on a custom port
- Tag and push a Docker image to the private registry
- Pull an image from the private registry and verify its availability
- Inspect the registry catalog via the HTTP API
- Secure the registry with basic HTTP authentication using htpasswd
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: docker:dind
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: docker, registry, private-registry, image-management, authentication, htpasswd, devops
Create a free account to start this lab.