I just installed Docker with Docker-Toolbox on my Mac using homebrew: install docker with homebrew
After creating and configuring a Container with Rails, Postgres an
After exposed the port, you can access the web app by the internal IP address created by docker. You can get the IP address using the container's name running the command:
docker inspect --format '{{ .NetworkSettings.IPAddress }}' 'container name here'
Let's say that you got the IP 172.17.0.2
. You can run open http://172.17.0.2:8000