Add index.html volume to nginx docker

Published: 07 November 2022
on channel: FlyTux
626
2

Add index.html volume to nginx docker

1. Create index.html

$ vi index.html
~~~
Welcome to Containerized nginx!
~~~


2. Run nginx docker with volume

$ sudo docker run -d --name nginx -p 80:80 -v $PWD:/usr/share/nginx/html nginx



3. Check nginx index page with w3m text browser

$ sudo docker run -it corbinu/alpine-w3m 172.17.0.1


On this page of the site you can watch the video online Add index.html volume to nginx docker with a duration of hours minute second in good quality, which was uploaded by the user FlyTux 07 November 2022, share the link with friends and acquaintances, this video has already been watched 626 times on youtube and it was liked by 2 viewers. Enjoy your viewing!