This is my docker playground.
This is a very simple rails api app that will have two simple actions:
/ping?host=localhost:3000
/pong
- Find out all your public IP:
ifconfig en0 | grep 192
- Add it to:
echo '192.168.1.3 dev' | sudo tee -a /etc/hosts
- Find out your docker-machine IP:
docker-machine ip
- Add it to:
echo '192.168.99.100 dev' | sudo tee -a /etc/hosts
On local env you need to bind your app to 0.0.0.0
rails s -p 3001 -b 0.0.0.0
bin/docker-build
bin/docker-run
bin/curl-tests
Mac
Docker for Mac
docker-machine