Manually sharing directory as docker volume mounting point on OSX
问题 According to this tutorial from docker website, When you start a container it automatically shares your /Users/username . My current problem : But in my school my $HOME isn't in /Users , and when I try to directly mount volumes on my container with something like docker run -d -P -v $HOME/site:/usr/share/nginx/html --name mysite nginx (like the tutorial from the link), I can't change files through the mounted volume. So I guess my $HOME isn't automatically shared. But if I run docker instpect