22 thoughts on “Docker Tutorial – Running A Web Server

  1. 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.

  2. Hi! I need the IP, but the command apparantely doesn't work.
    56850438cb0a nginx "/docker-entrypoint.…" 9 minutes ago Up 9 minutes 80/tcp,>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.

  3. 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"

  4. 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

  5. My ipaddress looks something like
    and this ip is accessible only only on my local machine
    How can we access this publicly?

  6. 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

  7. how could i edit /nginx/conf.d directory to add multiple websites or set extras config to a certain domain web site ?

Leave a Reply

Your email address will not be published. Required fields are marked *