Docker (www.docker.io) looks terrific. However, after installing VirtualBox, Vagrant ... and finally Docker on a Mac, I'm finding it's not possible to access the service running in the Docker container from another computer (or from a terminal session on the Mac). The service I'm trying to access is Redis.
The problem appears to be that there's no route to the IP address assigned to the Docker container. In this case the container's IP is 172.16.42.2 while the Mac's IP is 196.168.0.3.
A couple notes:
- It IS possible to access it - but only from within the VirtualBox session. This can be done using redis-cli -h 172.16.42.2 -p 6379.
- I have added "config.vm.network :bridged" to the VagrantFile in an attempt to get the, but that didn't solve the problem.
docker run -d -p :8989
now to directly map a port to the same port publicly as of github.com/dotcloud/docker/commit/… – Vanlandingham