This is kind of what I did in a first place. The docker installed fine and I can login to the instance and run docker containers.
But then I try to use heat to deploy container on the instance and the container is got created and then exit immediately. I want the container up and running.
Below is the template that I use to deploy the container: