Difference between revisions of "Nginx docker"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "mkdir data cd data echo hi > index.html docker run -p 80:80 -v $(pwd):/usr/share/nginx/html nginx")
 
Line 1: Line 1:
 +
```
 
mkdir data
 
mkdir data
 
cd data
 
cd data
 
echo hi > index.html
 
echo hi > index.html
 
docker run -p 80:80 -v $(pwd):/usr/share/nginx/html nginx
 
docker run -p 80:80 -v $(pwd):/usr/share/nginx/html nginx
 +
```

Revision as of 18:10, 9 June 2022

mkdir data
cd data
echo hi > index.html
docker run -p 80:80 -v $(pwd):/usr/share/nginx/html nginx