Member-only story
Docker Deep Dive
Is Your Docker Registry Up and Running? Find Out Now!
Step-by-Step Guide to Verifying Local Docker Registry Status
Table of Contents
1. Using the Docker CLI
2. Check the Port
3. Access the Registry via Curl or Browser
4. Using the Docker Registry API
This tutorial will show the steps how to verify that a Docker registry is running locally.
1. Using the Docker CLI
Docker command-line interface (CLI) can be used to check for running containers, including Docker registry. First, we want to list all running containers to see if the registry is among them:
$ docker ps
If a local docker registry is running, a container that is running an image likely named registry:2, or similar, will be listed, indicating it's a Docker registry container.
2. Check the Port
By default, the Docker registry runs on port 5000. We can check if this port is in use, which would suggest the registry is running:
$ netstat -tuln | grep :5000