-
Run a Local Registry Container:
docker run -d -p 5000:5000 --restart=always --name registry registry:2
-
Tag Your Image:
docker tag my-image:latest localhost:5000/my-image:latest
-
Push the Image to the Local Registry:
docker push localhost:5000/my-image:latest
-
Pull the Image from the Local Registry:
docker pull localhost:5000/my-image:latest
How to setup local docker registry
Updated on