The above works and I can see the Nginx message in my browser at “http://ip:port”
So, I try:
$ docker stop web
$ docker rm web
Then I make directory “$HOME/site” and place “index.html” in it
$ docker run -d -P -v $HOME/site:/usr/share/nginx/html --name mysite nginx
$ docker port mysite
This doesn’t work. When I go in the browser to "http://ip:port in Nginx, I get “forbidden”. If I try to directly access “http://ip:port/index.html”, I get “not found”.
Please point me in the right direction so I can proceed to learn about Docker.
OK, well I found an answer. Let’s just say my journey with Docker has been very rocky so far.
The answer to my problem above is that it only works if your $HOME directory is under /Users. I have my $HOME directory on a different partition, so instead of being /Users/rammjet I am /Volumes/Users/rammjet. The $HOME variable passes the correct directory, but it seems that the guest additions for Virtualbox are not configured to handle anything out of the ordinary. So, since it is a boot2docker issue, I guess I should have posted this in that part of the forum.