镜像管理
Docker 镜像地址 https://registry.hub.docker.com/
2.5.1. 搜索镜像
$ sudo docker search centos |more NAME DESCRIPTION STARS OFFICIAL AUTOMATED centos The official build of CentOS. 542 [OK] tianon/centos CentOS 5 and 6, created using rinse instea... 28 ansible/centos7-ansible Ansible on Centos7 13 [OK] saltstack/centos-6-minimal 7 [OK] blalor/centos Bare-bones base CentOS 6.5 image 7 [OK] steeef/graphite-centos CentOS 6.x with Graphite and Carbon via ng... 6 [OK] ariya/centos6-teamcity-server TeamCity Server 8.1 on CentOS 6 6 [OK] tutum/centos Centos image with SSH access. For the root... 5 [OK] tutum/centos-6.4 DEPRECATED. Use tutum/centos:6.4 instead. ... 5 [OK]
2.5.2. 获取镜像
可以使用 docker pull 命令来从官网仓库获取所需要的镜像。
$ sudo docker pull ubuntu:14.04
等同于
$ sudo docker pull registry.hub.docker.com/ubuntu:14.04
获得所有版本镜像
$ sudo docker pull ubuntu $ sudo docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE ubuntu utopic 277eb4304907 3 days ago 215.6 MB ubuntu 14.10 277eb4304907 3 days ago 215.6 MB ubuntu 14.04 5506de2b643b 3 days ago 197.8 MB ubuntu trusty 5506de2b643b 3 days ago 197.8 MB ubuntu latest 5506de2b643b 3 days ago 197.8 MB ubuntu 14.04.1 5506de2b643b 3 days ago 197.8 MB ubuntu precise 0b310e6bf058 3 days ago 116.1 MB ubuntu 12.04.5 0b310e6bf058 3 days ago 116.1 MB ubuntu 12.04 0b310e6bf058 3 days ago 116.1 MB ubuntu