docker_practice/basic_concept/repository.md

30 lines
3.9 KiB
Go
Raw 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
2019-01-06 02:15:13 +00:00
使 Registry [Docker Hub](https://hub.docker.com/),这也是默认的 Registry并拥有大量的高质量的官方镜像。除此以外还有 [CoreOS](https://coreos.com/) 的 [Quay.io](https://quay.io/repository/)CoreOS 相关的镜像存储在这里Google 的 [Google Container Registry](https://cloud.google.com/container-registry/)[Kubernetes](https://kubernetes.io/) 的镜像使用的就是这个服务。
2016-11-07 20:10:11 +00:00
2017-12-29 01:22:07 +00:00
访 Docker Hub `Registry Mirror`**** [](https://cr.console.aliyun.com/#/accelerator)、[DaoCloud 加速器](https://www.daocloud.io/mirror#accelerator-doc) 等。使用加速器会直接从国内的地址下载 Docker Hub 的镜像,比直接从 Docker Hub 下载速度会提高很多。在 [安装 Docker](../install/mirror.md) 一节中有详细的配置方法。
2016-11-07 20:10:11 +00:00
2017-11-22 12:28:10 +00:00
Docker Hub [](https://hub.tenxcloud.com/)、[网易云镜像服务](https://c.163.com/hub#/m/library/)、[DaoCloud 镜像市场](https://hub.daocloud.io/)、[阿里云镜像库](https://cr.console.aliyun.com) 等。
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
2016-11-07 21:57:30 +00:00
Docker Registry [Docker Registry API](https://docs.docker.com/registry/spec/api/) 的服务端实现,足以支持 `docker` 命令,不影响使用。但不包含图形界面,以及镜像维护、用户管理、访问控制等高级功能。在官方的商业化版本 [Docker Trusted Registry](https://docs.docker.com/datacenter/dtr/2.0/) 中,提供了这些高级功能。
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)。