一、搭建本地私有仓库
1、下载registry镜像
[root@localhost ~]#docker pull registry
Using default tag: latest
latest: Pulling from library/registry
79e9f2f55bf5: Pull complete
0d96da54f60b: Pull complete
5b27040df4a2: Pull complete
e2ead8259a04: Pull complete
3790aef225b9: Pull complete
Digest: sha256:169211e20e2f2d5d115674681eb79d21a217b296b43374b8e39f97fcf866b375
Status: Downloaded newer image for registry:latest
docker.io/library/registry:latest
[root@localhost ~]#docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
nginx latest 7383c266ef25 8 days ago 188MB
registry latest b8604a3fe854 2 years ago 26.2MB
2、在daemon.json文件中添加私有镜像仓库地址
[root@localhost ~]#cd /etc/docker/
[root@localhost docker]#ls
daemon.json[root@localhost ~]#vim /etc/docker/daemon.json{"insecure-registries": ["192.168.10.100:5000"],"registry-mirrors": ["https://5nbz4xnp.mirror.aliyuncs.com"]
}[root@localhost docker]#systemctl restart docker.service
三、harbor简介