Docker Private Registry

简单使用,官方

官方提供的 https://hub.docker.com/_/registry

Run a local registry: Quick Version

$ docker run -d -p 5000:5000 --restart always --name registry registry:2

Now, use it from within Docker:

$ docker pull ubuntu
$ docker tag ubuntu localhost:5000/ubuntu
$ docker push localhost:5000/ubuntu

更复杂的需求,harbor

https://goharbor.io/

Our mission is to be the trusted cloud native repository for Kubernetes