Get the App
SLTechnology News&Howtos  ›  Servers  › 

Using registry to build a private image repository

Shulou Source: shulou.com Published: 2022-06-02 19:50:55 09月22日 Update

Build a private warehouse on 192.168.1.244

# docker pull registry

# docker run-d-p 5000name myregistry registry 5000-v / data/myregistry:/var/lib/registry-- restart=always-- name myregistry registry

# vim / etc/docker/daemon.json

{"registry-mirrors": ["https://frz7i079.mirror.aliyuncs.com"], # has a comma" insecure-registries ": [" 192.168.1.244 5000 "]}

# systemctl restart docker

# docker pull nginx

# docker tag nginx 192.168.1.244:5000/nginx

# docker push 192.168.1.244:5000/nginx

On all k8s nodes

# vim / etc/docker/daemon.json

{"registry-mirrors": ["https://frz7i079.mirror.aliyuncs.com"], # has a comma" insecure-registries ": [" 192.168.1.244 5000 "]}

# systemctl restart docker

# docker pull 192.168.1.244:5000/nginx

Tags: Comma warehouse private node mirror Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Redmi macOS Shulou Information Linux