Install Nginx on Docker Nginx is a high-performance HTTP and reverse proxy web server that also provides IMAP/POP3/SMTP services. 1. View available Nginx versions Visit the Nginx image library address: https://hub.docker.com/_/nginx?tab=tags. You can view other versions of Nginx by Sort by. The default is the latest version nginx:latest. You can also find other versions you want in the drop-down list: In addition, we can also use the $ docker search nginx NAME DESCRIPTION STARS OFFICIAL AUTOMATED nginx Official build of Nginx. 3260 [OK] jwilder/nginx-proxy Automated Nginx reverse proxy for docker c... 674 [OK] richarvey/nginx-php-fpm Container running Nginx + PHP-FPM capable ... 207 [OK] million12/nginx-php Nginx + PHP-FPM 5.5, 5.6, 7.0 (NG), CentOS... 67 [OK] maxexcloo/nginx-php Docker framework container with Nginx and ... 57 [OK] ... 2. Get the latest version of Nginx image Here we pull the latest official version of the image: $ docker pull nginx:latest 3. View local image Use the following command to check whether nginx is installed: $ docker images In the above picture, you can see that we have installed the latest version of nginx image. 4. Run the container After the installation is complete, we can run the nginx container with the following command: $ docker run --name nginx-test -p 8080:80 -d nginx Parameter Description:
5. Installation successful Finally, we can directly access the nginx service on port 8080 through the browser: The above is the details of how to install Nginx with Docker. For more information about installing Nginx with Docker, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Detailed explanation of using Baidu style in eslint in React project
>>: Vue3.0 implements encapsulation of checkbox components
I think editors are divided into two categories, ...
A database index is a data structure whose purpos...
Table of contents 1 A brief introduction to syste...
1. First look at the request configuration file, ...
Table of contents From father to son: 1. In the s...
The previous article introduced how to achieve a ...
Distinguish the differences between the filter, f...
This article introduces and shares the responsive...
This article shares the installation and configur...
This article shares the specific code of js to ac...
Vulnerability Details VSFTP is a set of FTP serve...
Table of contents need: drive: Ideas: accomplish:...
When dynamically concatenating strings, we often ...
1. Purpose: Make the code easier to maintain and ...
Table of contents Parsing .vue files Extract docu...