Interview Prep/Docker/Runtime Stack, OCI & Registries

How do you run your own private registry quickly?

BeginnerConceptRuntime Stack, OCI & Registries
Answer
docker run -d -p 5000:5000 --restart=always --name registry registry:2
docker tag app localhost:5000/app && docker push localhost:5000/app

For remote use you need TLS and authentication (htpasswd or token); otherwise clients must list it under insecure-registries, which is only for labs.

All Docker questions Roadmap: Docker & containers

More on Runtime Stack, OCI & Registries