Docker容器---Harbor私有仓库部署与管理

一、搭建本地私有仓库

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简介

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-05-02 09:50:02       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-05-02 09:50:02       106 阅读
  3. 在Django里面运行非项目文件

    2024-05-02 09:50:02       87 阅读
  4. Python语言-面向对象

    2024-05-02 09:50:02       96 阅读

热门阅读

  1. 关于HTML

    2024-05-02 09:50:02       38 阅读
  2. netty的继续学习一(相关概念)

    2024-05-02 09:50:02       31 阅读
  3. c#工控行业的视觉技术栈

    2024-05-02 09:50:02       26 阅读
  4. 串行化执行代码实践

    2024-05-02 09:50:02       34 阅读
  5. selenium之document.querySelector()方法

    2024-05-02 09:50:02       32 阅读
  6. Redis除了当缓存 | 你还能想到哪些高级用法?

    2024-05-02 09:50:02       33 阅读
  7. 探索图像边缘:使用Python进行轮廓检测

    2024-05-02 09:50:02       30 阅读
  8. 【软测学习笔记】MySQL入门Day01

    2024-05-02 09:50:02       35 阅读
  9. Qt 配置 FFmpeg

    2024-05-02 09:50:02       32 阅读
  10. python 关键字(else)

    2024-05-02 09:50:02       29 阅读
  11. Ubuntu 18.0.4 安装 libc6 2.28 及公钥验证相关

    2024-05-02 09:50:02       34 阅读
  12. Python中关于子类约束的开发规范

    2024-05-02 09:50:02       31 阅读