Ubuntu Cosmic 18.10 – Use Ansible To Deploy Docker

As it turns out, Docker doesn’t officially support any version of Ubuntu past Artful. This is a bit of a challenge if you want to use a state configuration manager such as Ansible to deploy Docker, or even if you want to install it manually. I was able to get this working by using the test branch of the docker release for Ubuntu Cosmic.

 I found a popular role in Ansible Galaxy with a ton of installs, but the documentation that comes with it doesn’t work, which is fine… not a supported version, etc. I used the steps below to get it working.

Please be aware, the test branch is likely not stable, and shouldn’t be used for production. Follow this at your own risk.

1.) Run the command below to install the role

2.) Create a text file named “install-docker.yml”
  – The value assigned to docker_apt_release_channel being “test”.
  – Add your own username(s) under “docker_users”
(This yaml file is located on my github page here: https://github.com/jonhowe/Virtjunkie.com/blob/master/install-docker.yml)

3.) Then it’s as easy as running the playbook

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright VirtJunkie.com ยฉ 2024