Docker Hub可以通过其搜索界面或命令行界面搜索Docker Hub注册表。搜索可以按镜像名称,用户名或描述找到镜像:
$ docker search centos
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
centos The official build of CentOS. 1034 [OK]
ansible/centos7-ansible Ansible on Centos7 43 [OK]
tutum/centos Centos image with SSH access. For the root... 13 [OK]
...
在那里,您可以看到两个示例结果:centos和ansible/centos7-ansible。第二个结果显示它来自名为的用户的公共存储库ansible/,而第一个结果centos没有显式列出存储库,这意味着它来自官方映像的顶级命名空间 。该/字符将用户的存储库与映像名称分开。
找到所需的镜像后,可以通过以下方式下载docker pull:
$ docker pull centos
latest: Pulling from centos
6941bfcbbfca: Pull complete
41459f052977: Pull complete
fd44297e2ddb: Already exists
centos:latest: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Digest: sha256:d601d3b928eb2954653c59e65862aabb31edefa868bd5148a41fa45004c12288
Status: Downloaded newer image for centos:latest
现在,您有了一个可以运行容器的映像。
顶: 356踩: 0576298
云安全日报210113:Adobe Photoshop和Illustrator发现任意代码执行漏洞,需要尽快升级
人参与 | 时间:2026-08-15
相关文章
- 夸克推出国内首个全阶段医师考试大模型测试集
- 云计算开发:Python内置函数-raw_input() 函数详解
- 苹果 M5芯片重磅发布:AI 性能实现“四倍飞跃”,加速终端侧智能体验
- 标签: Netflix InterPositive 本·阿弗莱克 AI影视工具
- 2025年GEO优化实战指南:这样做AI搜索优化,从被“摘录”到被引用
- 平安医疗 AI 大模型横扫全球,获全球医疗AI最高评分
- 2021年值得关注的5个机器人流程自动化(RPA)趋势
- 标签: 搜狐 张朝阳
- 阿里云季度营收增长34%,吴泳铭:需求旺盛,AI服务器上架节奏跟不上订单增长速度
- 斯坦福研究:人工智能导致年轻员工入门级职位减少13%


评论专区