More carefully, my problem is the same as this question: Docker, cannot reach the development of "rails server" with localhost: 3000 using the dock flag -p 3000: 3000
The answer to this question that worked for me was this one that just says to run
boot2docker ssh -L 8080:localhost:80
on the terminal before running boot2docker
In my case, I do this (from a git bash terminal):
boot2docker init # from https:
then go to my windows web browser and point it to http://localhost:8787/ and I get an instance of the RStudio server. When I finished:
docker rm -f $(docker ps -a -q)
UPDATE: upgrading to an earlier version of VirtualBox will fix this
After struggling with folder sharing, I regressed with previous versions of VirtualBox and found that with version 4.3.12 I can enable folder sharing and redirect the port according to the official instructions, that is, I could access the docker container in 192.168.59.103 . Therefore, downgrading VirtualBox is another option to solve this problem.
OTHER UPDATE: updating to the new version v1.3.1 boot2docker will fix this
This release was released a week ago and includes add-ons for VirtualBox that simplify all this. Now i just do
boot2docker ssh
And I get everything that was expected, and I can enter RStudio in my browser at http://localhost:8787/ (linux) or http://192.168.59.103:8787 (Windows) and it just works.
In this case, I also have shared access to the folder , working with /c/Users/foobar , corresponding to the existing folder on my computer, C:/Users/foobar and foobar can be anything. With this method, I can read and write files in both directions between Windows and RStudio, and I do not need to connect to a special IP address, for example, the samba method in official documents