Goal Show a simple setup of headless system testing inside a container with Ruby on Rails. There are likely many ways to achieve this goal. However, my aim was to hook into an eventual CI system where the Rails application could be validated by building the docker image and running the test suite. I'll break this down into 3 steps: Create docker image with CentOS and ruby 2.4 Create docker images