
Setting up a local Docker registry is a great way to manage and share container images in your development environment without relying on external services like Docker Hub. This guide walks you through setting up a private Docker registry on your machine using PowerShell on Windows.
Prerequisites
- Docker Desktop installed
- Windows PowerShell
- Optional:
curlorInvoke-RestMethodfor testing
Step 1: Start the Docker Registry Container
Docker provides an official image for the registry. You can launch it using PowerShell:
1docker run -d `
2 -p 5000:5000 `
3 --restart=always `
4 --name registry `
5 registry:2
This will expose your registry at http://localhost:5000.
Step 2: Test the Registry
Let’s push a simple image to the local registry:
1# Pull an example image
2docker pull hello-world
3
4# Tag it for the local registry
5docker tag hello-world localhost:5000/hello-world
6
7# Push it to the local registry
8docker push localhost:5000/hello-world
Step 3: Check Available Images
To verify that the image was stored, run:
1Invoke-RestMethod -Uri http://localhost:5000/v2/_catalog
1{
2 "repositories": [
3 "hello-world"
4 ]
5}
Conclusion
With just a few commands, you can spin up your own private Docker registry for local development. It’s a great tool for testing, internal CI/CD workflows or teams working in isolated environments.
Related articles

Oct 27, 2019 - 2 min read
Use a MSSQL Server 2017 Docker Container with Full-Text Search Support
By default, there is currently no Full-Text Search Support in the Docker Images for Microsoft SQL Server 2017 or 2019 by Microsoft. The only …

May 02, 2019 - 2 min read
Run MSSQL on Docker for Windows
For some time now, Microsoft has been providing various MSSQL Server versions for Docker - for Linux and for Windows. This means that …

Aug 30, 2018 - 4 min read
Run ASP.NET Core with .NET Framework in a Docker Container
Sometimes you still have the requirement that the .NET Framework is needed - but you still want to use ASP.NET Core and Docker.
Let's Work Together
Looking for an experienced Platform Architect or Engineer for your next project? Whether it's cloud migration, platform modernization or building new solutions from scratch - I'm here to help you succeed.
