博客
关于我
Docker常用命令之私有仓库
阅读量:97 次
发布时间:2019-02-26

本文共 546 字,大约阅读时间需要 1 分钟。

文章目录

关于仓库操作

仓库(Repository )是集中存放镜像的地方,又分公共仓库和私有仓库

1、公共仓库

①、Docker Hub Docker 官方提供的最大的公共镜像仓库

②、国内不少云服务商都提供了 Docker 镜像市场包括腾讯云、网易云、阿里云等

2、私有仓库

①、拉取私有仓库registry镜像

docker pull registry

②、启动私有仓库容器

docker run -di --name=myregistry -p 5000:5000 registry

浏览器访问:http://ip:端口/v2/_catalog

看到{“repositories”:[]} 表示私有仓库搭建成功,此时仓库内容为空

③、修改deamon.json

vi /etc/docker/daemon.json #添加以下内容,保存退出。{   "insecure-registries":["ip:端口"]}  #此步用于让 docker信任私有仓库地址

④、重启docker

systemctl restart docker

⑤、启动myregistry仓库镜像

docker start myregistry

接下来就可以上传镜像到私有仓库,建议上传的镜像可以重新标记镜像名

转载地址:http://fbeu.baihongyu.com/

你可能感兴趣的文章
nmap指纹识别要点以及又快又准之方法
查看>>
Nmap渗透测试指南之指纹识别与探测、伺机而动
查看>>
Nmap端口扫描工具Windows安装和命令大全(非常详细)零基础入门到精通,收藏这篇就够了
查看>>
NMAP网络扫描工具的安装与使用
查看>>
NMF(非负矩阵分解)
查看>>
nmon_x86_64_centos7工具如何使用
查看>>
NN&DL4.1 Deep L-layer neural network简介
查看>>
NN&DL4.3 Getting your matrix dimensions right
查看>>
NN&DL4.7 Parameters vs Hyperparameters
查看>>
NN&DL4.8 What does this have to do with the brain?
查看>>
nnU-Net 终极指南
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
NO 157 去掉禅道访问地址中的zentao
查看>>
no available service ‘default‘ found, please make sure registry config corre seata
查看>>
No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
查看>>
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>