Docker/nginxnode:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
创建页面,内容为“== nginxnode == == 搜索 == {{Shc_out|<syntaxhighlight lang="bash"> sudo docker search nginx </syntaxhighlight>|<syntaxhighlight lang="bash">NAME…”
 
Kangkk​(留言 | 贡献)
 
(未显示同一用户的4个中间版本)
第31行: 第31行:


</syntaxhighlight>|$|/home/kangkk}}
</syntaxhighlight>|$|/home/kangkk}}
{{shc|<syntaxhighlight lang="bash">
sudo docker search node
</syntaxhighlight>|$|/home/kangkk}}
== 下载镜像到本地 ==
== 下载镜像到本地 ==
{{Shc_out|<syntaxhighlight lang="bash">
sudo docker pull nginx
</syntaxhighlight>|<syntaxhighlight lang="bash">Using default tag: latest
latest: Pulling from library/nginx
f7ec5a41d630: Pull complete
aa1efa14b3bf: Pull complete
b78b95af9b17: Pull complete
c7d6bca2b8dc: Pull complete
cf16cd8e71e0: Pull complete
0241c68333ef: Pull complete
Digest: sha256:75a55d33ecc73c2a242450a9f1cc858499d468f077ea942867e662c247b5e412
Status: Downloaded newer image for nginx:latest
docker.io/library/nginx:latest
</syntaxhighlight>|$|/home/kangkk}}
{{shc|<syntaxhighlight lang="bash">
sudo docker pull node
</syntaxhighlight>|$|/home/kangkk}}
== 查看本地镜像 ==
{{Shc_out|<syntaxhighlight lang="bash">
sudo docker images
</syntaxhighlight>|<syntaxhighlight lang="bash">REPOSITORY  TAG      IMAGE ID      CREATED      SIZE
node        latest    6817534de6bd  3 days ago    907MB
nginx        latest    62d49f9bab67  2 weeks ago  133MB
</syntaxhighlight>|$|/home/kangkk}}
{{Warning|其中 node 镜像 907MB 太大。在实际使用中,使用 NPM --production 标签可缩减大小。
Node Prune 工具,从node_modules文件夹中删除不需要的文件。}}

2021年4月30日 (五) 11:54的最新版本

nginxnode

搜索

[jian@kang /home/kangkk]$
sudo docker search nginx
NAME                               DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
nginx                              Official build of Nginx.                        14798     [OK]       
jwilder/nginx-proxy                Automated Nginx reverse proxy for docker con…   2020                 [OK]
richarvey/nginx-php-fpm            Container running Nginx + PHP-FPM capable of…   813                  [OK]
jc21/nginx-proxy-manager           Docker container for managing Nginx proxy ho…   184                  
linuxserver/nginx                  An Nginx container, brought to you by LinuxS…   143                  
tiangolo/nginx-rtmp                Docker image with Nginx using the nginx-rtmp…   122                  [OK]
jlesage/nginx-proxy-manager        Docker container for Nginx Proxy Manager        106                  [OK]
bitnami/nginx                      Bitnami nginx Docker Image                      96                   [OK]
alfg/nginx-rtmp                    NGINX, nginx-rtmp-module and FFmpeg from sou…   92                   [OK]
nginxdemos/hello                   NGINX webserver that serves a simple page co…   67                   [OK]
privatebin/nginx-fpm-alpine        PrivateBin running on an Nginx, php-fpm & Al…   53                   [OK]
nginx/nginx-ingress                NGINX Ingress Controller for Kubernetes         51                   
nginxinc/nginx-unprivileged        Unprivileged NGINX Dockerfiles                  32                   
staticfloat/nginx-certbot          Opinionated setup for automatic TLS certs lo…   20                   [OK]
schmunk42/nginx-redirect           A very simple container to redirect HTTP tra…   19                   [OK]
nginx/nginx-prometheus-exporter    NGINX Prometheus Exporter                       17                   
centos/nginx-112-centos7           Platform for running nginx 1.12 or building …   15                   
centos/nginx-18-centos7            Platform for running nginx 1.8 or building n…   13                   
bitwarden/nginx                    The Bitwarden nginx web server acting as a r…   12                   
flashspys/nginx-static             Super Lightweight Nginx Image                   10                   [OK]
mailu/nginx                        Mailu nginx frontend                            8                    [OK]
bitnami/nginx-ingress-controller   Bitnami Docker Image for NGINX Ingress Contr…   8                    [OK]
navidonskis/nginx-php5.6           Docker nginx + php5.6 on Ubuntu                 7                    [OK]
ansibleplaybookbundle/nginx-apb    An APB to deploy NGINX                          2                    [OK]
wodby/nginx                        Generic nginx                                   1                    [OK]
/home/kangkk
sudo docker search node

下载镜像到本地

[jian@kang /home/kangkk]$
sudo docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
f7ec5a41d630: Pull complete 
aa1efa14b3bf: Pull complete 
b78b95af9b17: Pull complete 
c7d6bca2b8dc: Pull complete 
cf16cd8e71e0: Pull complete 
0241c68333ef: Pull complete 
Digest: sha256:75a55d33ecc73c2a242450a9f1cc858499d468f077ea942867e662c247b5e412
Status: Downloaded newer image for nginx:latest
docker.io/library/nginx:latest
/home/kangkk
sudo docker pull node

查看本地镜像

[jian@kang /home/kangkk]$
sudo docker images
REPOSITORY   TAG       IMAGE ID       CREATED       SIZE
node         latest    6817534de6bd   3 days ago    907MB
nginx        latest    62d49f9bab67   2 weeks ago   133MB
Warning: 其中 node 镜像 907MB 太大。在实际使用中,使用 NPM --production 标签可缩减大小。 Node Prune 工具,从node_modules文件夹中删除不需要的文件。