I want to run a node app that uses express and connects to a (boot2docker) docker mongo container.
When I first wrote the app, I was using a locally installed instan
You need to publish the appropriate port on the container with the -p argument i.e:
-p
docker run -p 27017:27017 -v "$(pwd)":/data --name mongo -d mongo mongod --smallfiles
The will make port 27017 accessible on the host (the VM in your case) and forward traffic to port 27017 on the container.