title: How do I install docker using cloud-init?
body: <p>I want to create instances in Openstack that will have Docker in them already installed prior to ssh to them. So naturally I got interested in Cloud-init technology because it allows us to install packages on virtual machines during first boot time. So now I'm trying to install Docker on my instances during boot time, here is my code that I'm passing to the user data;</p>
  
  <pre><code>#cloud-config
  
  packages:
     - docker.io
  </code></pre>
  
  <p>This doesn't work obviously, so how can I make it work?</p>