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
You might be wondering why you should use the pat...
Table of contents 1. When inserting or modifying ...
All the orchestration files and configuration fil...
Introduction <br />Not everyone has access t...
Table of contents Installation-free version of My...
All prerequisites require root permissions 1. End...
This article example shares the specific code of ...
Description Solution VMware 15 virtual machine br...
Origin: A few days ago, a tester sent a requireme...
1. What problems did we encounter? In standard SQ...
<br />Previous Web Design Tutorial: Web Desi...
1 Download MySQL8 from the official website and i...
<br />Not long ago, due to business needs, I...
The css animation of the rotating flip effect, th...
This time we use HTML+CSS layout to make a prelim...