Try Rails on Carina
This is a sample Rails application which runs on Carina and is backed by a
MySQL database hosted on the Rackspace Cloud Database service.
Create a MySQL database in the IAD region in the Rackspace Cloud Control Panel.
Note the host name, and credentials as it will be needed in the next step.
carinamarina/try-railscontainer. Update the
variable with your database connection details.
docker run --name rails \ --env DATABASE_URL="mysql://username:password@host/dbname" \ --detach \ --publish-all \ carinamarina/try-rails
Identity the port where the rails application was published. In the example below,
the port is 32800.
$ docker port rails 3000/tcp -> 220.127.116.11:32800
for example http://18.104.22.168:32800. You should see the
Powered By Carina badge if the database connection was successful.