Useful commands

Prune - remove unused images

docker image prune -a

List images

docker images ls

List containers

docker container ls

Run app

docker-compose run web

Get container IP (seems to work with localhost by default)

docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id

How to setup a Rails app with Docker