docker_practice/basic_concept/repository.md

30 lines
4.0 KiB
Go
Raw Permalink Normal View History

# Docker Registry
2014-09-12 08:17:56 +00:00
2017-12-03 02:26:28 +00:00
宿使[Docker Registry](../repository/registry.md)
2014-09-12 08:17:56 +00:00
2019-03-08 04:21:07 +00:00
**Docker Registry** ****`Repository` ****`Tag`
2014-09-26 06:08:26 +00:00
`<仓库名>:<标签>` `latest`
2016-06-12 10:22:47 +00:00
2019-04-29 01:26:29 +00:00
[Ubuntu ](https://hub.docker.com/_/ubuntu) 为例,`ubuntu` 是仓库的名字,其内包含有不同的版本标签,如,`16.04`, `18.04`。我们可以通过 `ubuntu:16.04`,或者 `ubuntu:18.04` 来具体指定所需哪个版本的镜像。如果忽略了标签,比如 `ubuntu`,那将视为 `ubuntu:latest`。
2014-09-26 06:08:26 +00:00
2016-11-07 21:57:30 +00:00
** `jwilder/nginx-proxy` Docker Registry 使 Docker Registry
## Docker Registry
2016-11-07 21:57:30 +00:00
Docker Registry 使 Registry
2016-11-07 20:10:11 +00:00
使 Registry [Docker Hub](https://hub.docker.com/),这也是默认的 Registry并拥有大量的高质量的 [官方镜像](https://hub.docker.com/search?q=&type=image&image_filter=official)。除此以外,还有 Red Hat 的 [Quay.io](https://quay.io/repository/)Google 的 [Google Container Registry](https://cloud.google.com/container-registry/)[Kubernetes](https://kubernetes.io/) 的镜像使用的就是这个服务;代码托管平台 [GitHub](https://github.com) 推出的 [ghcr.io](https://docs.github.com/cn/packages/working-with-a-github-packages-registry/working-with-the-container-registry)。
2016-11-07 20:10:11 +00:00
访 Docker Hub `Registry Mirror` **** [](https://www.aliyun.com/product/acr?source=5176.11533457&userCode=8lx5zmtu)、[DaoCloud 加速器](https://www.daocloud.io/mirror#accelerator-doc) 等。使用加速器会直接从国内的地址下载 Docker Hub 的镜像,比直接从 Docker Hub 下载速度会提高很多。在 [安装 Docker](../install/mirror.md) 一节中有详细的配置方法。
2016-11-07 20:10:11 +00:00
Docker Hub [](https://c.163.com/hub#/m/library/)、[DaoCloud 镜像市场](https://hub.daocloud.io/)、[阿里云镜像库](https://www.aliyun.com/product/acr?source=5176.11533457&userCode=8lx5zmtu) 等。
2016-11-07 20:10:11 +00:00
## Docker Registry
2016-11-07 20:10:11 +00:00
2018-12-14 11:08:14 +00:00
使 Docker RegistryDocker [Docker Registry](https://hub.docker.com/_/registry/) 镜像,可以直接使用做为私有 Registry 服务。在 [私有仓库](../repository/registry.md) 一节中,会有进一步的搭建私有 Registry 服务的讲解。
2016-11-07 20:10:11 +00:00
Docker Registry [Docker Registry API](https://docs.docker.com/registry/spec/api/) 的服务端实现,足以支持 `docker` 命令,不影响使用。但不包含图形界面,以及镜像维护、用户管理、访问控制等高级功能。
2016-11-07 20:10:11 +00:00
2019-03-08 04:21:07 +00:00
Docker Registry Docker Registry API[Harbor](https://github.com/goharbor/harbor) 和 [Sonatype Nexus](../repository/nexus3_registry.md)。