Docker篇之docker镜像

Docker Hub网站是docker的官方网站,里面有着大量的镜像来供大家下载

查找镜像 (search)

这里以nginx为例

docker search nginx
NAME                               DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
nginx                              Official build of Nginx.                        13713               [OK]                
jwilder/nginx-proxy                Automated Nginx reverse proxy for docker con…   1870                                    [OK]
richarvey/nginx-php-fpm            Container running Nginx + PHP-FPM capable of…   785                                     [OK]
linuxserver/nginx                  An Nginx container, brought to you by LinuxS…   128                                     
bitnami/nginx                      Bitnami nginx Docker Image                      90                                      [OK]
tiangolo/nginx-rtmp                Docker image with Nginx using the nginx-rtmp…   89                                      [OK]
jc21/nginx-proxy-manager           Docker container for managing Nginx proxy ho…   87                                      
alfg/nginx-rtmp                    NGINX, nginx-rtmp-module and FFmpeg from sou…   75                                      [OK]
nginxdemos/hello                   NGINX webserver that serves a simple page co…   60                                      [OK]
jlesage/nginx-proxy-manager        Docker container for Nginx Proxy Manager        53                                      [OK]

查出来的都是以下载量排序

获取镜像(pull)

我们先来看一下pull的命令格式,其中NAME是镜像的名字,TAG是镜像的标签

docker pull [OPTIONS] NAME[:TAG|@DIGEST]

这里可以登录Docker Hub官网去看一下,搜索一下nginx的镜像

你可能感兴趣的:(Docker)