$ docker run --name some-nginx -d -p 8080:80 nginx
ホストのsafariで、localhost:8080を開くと、
nginxのページが表示される
$ echo $HOME (/Users/hiroyuki)
$ cd $HOME
$ mkdir site
$ cd site
$ echo "my new site" > index.html
$ docker run -d -P -v $HOME/site:/usr/share/nginx/html --name mysite nginx
($ docker port mysite)
docker DesktopのContainers / AppsのmysiteのOPEN IN BROWSEボタンからsafariで開くと表示される
http://localhost:55000
$ echo "This is cool" > cool.html
http://localhost:55000/cool.html