Docker Tutorial – Running A Web Server
Docker Tutorial – Running A Web Server
Learn programming, development and design from experts FREE for 30 days with Stone River eLearning.
How to Create a Website: Step-by-Step Guide for Beginners
Docker Tutorial – Running A Web Server
Learn programming, development and design from experts FREE for 30 days with Stone River eLearning.
If anyone get error 403 on nginx when you enter the url, kindly refer below.
If anyone using Ubuntu instead of Mac, consider changing the path from $home/mysite to your location of your index.html file. In Ubuntu the command will look like "sudo docker run -d -P -v /home/user/mysite:/usr/share/nginx/html " ("user" in the command may vary depends on your user id of your ubuntu)
ie. "sudo docker run -d -P -v /home/james/mysite:/usr/share/nginx/html " (or you can get your file location by checking its properties)
Error 403 on nginx happened because of many reasons and one of them is it cannot find the index.html in the given location so your path must be not correct if you get the error. By changing the path it may work because your path and the tutorial paths may be different.
Btw, great and simple and easy to follow tutorial. Really helping others. Just some minor problems so I hope this comment can help others too.
ff
Can't wake someone that is pretending to be asleep. I think that is what you're attempting to say.
Can't access the site outside the local network. Would be nice if you explained, how to do that as well.
Hi! I need the IP, but the command apparantely doesn't work.
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
56850438cb0a nginx "/docker-entrypoint.…" 9 minutes ago Up 9 minutes 80/tcp, 0.0.0.0:1935->1935/tcp web
marcos-mbp:~ marcofernandezgalvis$ docker-machine ip default
Docker machine "default" does not exist. Use "docker-machine ls" to list machines. Use "docker-machine create" to add a new one.
i run this command sudo docker-machine ip default
then i get this error — docker-machine: command not found
What did you just call nginx?
OMG U SAVE MY LIFE!!!!!!!!!!!!!!!!!!!!!!!!1
OMG!!! Thank you so much !!! 😆
It's really help me 🙏
he lost me at "in jinx"
Sir, can i use docker as a host in my ecommerce website instead of buying host from servers? Please reply
This video is completely misleading. I think you have some index.php file already running in your var/www/html, that is the reason for "The new website" being displayed and not "a new website"
good tutorial, but some stuff is specific to the Mac.
4:24 the business with the backslash unnecessary; it means “i’m going to continue my command on the next line, don’t run it yet when I hit Enter now” — ppl usually use this BEFORE the cursor wraps to the next line, lol
Much better watching this with 1.5x speed. Commentary is too slow
docker port mysite only has 1 nginx port
My ipaddress looks something like 172.17.0.2
and this ip is accessible only only on my local machine
How can we access this publicly?
You need to explain better the last command you did. It's very hard to do the same when 1. I'm not using a MAC 2. I have no idea what's going on
Did exactly what you did,and got 403 when I went to enter the URL
how could i edit /nginx/conf.d directory to add multiple websites or set extras config to a certain domain web site ?
nginx is said "Engine X"
why you wrote "a new website" in the index.html, but then in the browser we see "my new web site"?