Docker Registry

创建Docker Registry

在安装了 Docker 后,可以通过获取官方 registry 镜像来运行。

[root@linux-node1 ~]# docker run -d --name docker-registry -p 5000:5000 registry
b822d0a3e77e6a3144408119ccc2e7344f60f7404651adc025ce84561245b2d2

配置Docker信任仓库

[root@linux-node1 ~]# vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://tdimi5q1.mirror.aliyuncs.com"],
"insecure-registries" : ["http://192.168.56.11:5000"]
}
[root@linux-node1 ~]# systemctl restart docker

Push镜像到Docker Registry

[root@linux-node1 ~]# docker tag system/centos 192.168.56.11:5000/system/centos
[root@linux-node1 ~]# docker push 192.168.56.11:5000/system/centos
Copyright © 赵班长@新运维社区 2019 all right reserved,powered by Gitbook该文件修订时间: 2019-08-11 17:29:04

results matching ""

    No results matching ""