docker 安装 nginx
查找 nginx 镜像
[root@docker ~]# docker search nginx
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
nginx Official build of Nginx. 10489 [OK]
jwilder/nginx-proxy Automated Nginx reverse proxy for docker con… 1482 [OK]
richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable of… 659 [OK]
jrcs/letsencrypt-nginx-proxy-companion LetsEncrypt container to use with nginx as p… 450 [OK]
kong Open-source Microservice & API Management la… 257 [OK]
webdevops/php-nginx Nginx with PHP-FPM 118 [OK]
kitematic/hello-world-nginx A light-weight nginx container that demonstr… 113
zabbix/zabbix-web-nginx-mysql Zabbix frontend based on Nginx web-server wi… 80 [OK]
bitnami/nginx Bitnami nginx Docker Image 59 [OK]
1and1internet/ubuntu-16-nginx-php-phpmyadmin-mysql-5 ubuntu-16-nginx-php-phpmyadmin-mysql-5 47 [OK]
linuxserver/nginx An Nginx container, brought to you by LinuxS… 44
tobi312/rpi-nginx NGINX on Raspberry Pi / armhf 23 [OK]
nginx/nginx-ingress NGINX Ingress Controller for Kubernetes 13
blacklabelops/nginx Dockerized Nginx Reverse Proxy Server. 12 [OK]
wodby/drupal-nginx Nginx for Drupal container image 11 [OK]
nginxdemos/hello NGINX webserver that serves a simple page co… 8 [OK]
centos/nginx-18-centos7 Platform for running nginx 1.8 or building n… 8
centos/nginx-112-centos7 Platform for running nginx 1.12 or building … 5
1science/nginx Nginx Docker images that include Consul Temp… 4 [OK]
pebbletech/nginx-proxy nginx-proxy sets up a container running ngin… 2 [OK]
travix/nginx NGinx reverse proxy 2 [OK]
mailu/nginx Mailu nginx frontend 2 [OK]
toccoag/openshift-nginx Nginx reverse proxy for Nice running on same… 1 [OK]
ansibleplaybookbundle/nginx-apb An APB to deploy NGINX 0 [OK]
wodby/nginx Generic nginx 0 [OK]
[root@docker ~]#
拉取镜像
[root@docker ~]# docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
a5a6f2f73cd8: Already exists
1ba02017c4b2: Pull complete
33b176c904de: Pull complete
Digest: sha256:5d32f60db294b5deb55d078cd4feb410ad88e6fe77500c87d3970eca97f54dba
Status: Downloaded newer image for nginx:latest
[root@docker ~]#
查看本地镜像
[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
runoob/centos 6.7 be5e1d8bd085 9 days ago 191MB
runoob/centos dev be5e1d8bd085 9 days ago 191MB
runoob/ubuntu v2 b14eca5fdbcb 9 days ago 137MB
nginx latest 568c4670fa80 9 days ago 109MB
ubuntu 14.04 f17b6a61de28 2 weeks ago 188MB
tomcat latest 78b258e36eed 2 weeks ago 463MB
httpd latest 2a51bb06dc8b 3 weeks ago 132MB
zookeeper 3.4.13 f336949ce7a1 6 weeks ago 148MB
mysql 5.7.23 1b30b36ae96a 7 weeks ago 372MB
centos 6.7 192ad0341c8b 8 weeks ago 191MB
centos latest 75835a67d134 8 weeks ago 200MB
hello-world latest 4ab4c602aa5e 3 months ago 1.84kB
ubuntu 15.10 9b9cb95443b5 2 years ago 137MB
training/webapp latest 6fae60ef3446 3 years ago 349MB
[root@docker ~]#