Docker is easy to install from the Ubuntu repositories if you’re on an LTS release. I’m usually not though, so this is how I get the latest Docker onto my Ubuntu developer setup.

Download the latest from Docker – currently 18.10 Cosmic Cuttlefish
https://download.docker.com/linux/ubuntu/dists/cosmic/stable/amd64/

Install each file downloaded above e.g.

$ sudo dpkg -i containerd.io_1.2.2-1_amd64.deb
$ sudo dpkg -i docker-ce-cli_18.09.1~3-0~ubuntu-cosmic_amd64.deb
$ sudo dpkg -i docker-ce_18.09.1~3-0~ubuntu-cosmic_amd64.deb

Add your user to the docker group, if not done before (logout required)

$ sudo usermod -aG docker $USER

Verify the installation

$ docker --version

Repeat the steps to upgrade again.

Posted by Mark Brownsword

I've been working as an enterprise developer for more than 15 years, always using .NET platform and recently building for iOS with Swift. My degree is in Business Studies, majoring in information systems, where I learnt the fundamentals of software engineering for building systems for business.