How to use Docker within IntelliJ

A short tutorial on how to use Docker within intelliJ and with a little help from Gradle.