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 -> 126.96.36.199:32800
for example http://188.8.131.52:32800. You should see the
Powered By Carina badge if the database connection was successful.