Have oldish docker, is an update recommended?

I’ve not used Docker since first loading it in 2019 when I went through some basic tutorials. I am now starting to learn Jenkins, which makes use of Docker. Should the Docker program I have installed on my computer should be updated? Is there a guide for doing this?

My system: Ubuntu 20.04

Docker version:

Client: Docker Engine - Community
 Version:           0.0.0-20190727010531-15bdbd76a5
 API version:       1.40
 Go version:        go1.12.6
 Git commit:        15bdbd76a5
 Built:             Sun Jul 28 07:37:14 2019
 OS/Arch:           linux/amd64
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          0.0.0-20190727010531-15bdbd76a5
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.12.6
  Git commit:       15bdbd76a5
  Built:            Sun Jul 28 07:35:46 2019
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.3
  GitCommit:        269548fa27e0089a8b8278fc4fc781d7f65a939b
 runc:
  Version:          1.0.0-rc92
  GitCommit:        ff819c7e9184c13b7c2607fe6c30ae19403a7aff
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

I found the following for my system (Ubuntu), and it includes notes for how to remove old versions and to install. Install Docker Engine on Ubuntu
After going through the process, I still have the same version. For uninstalling I executed the following:

 sudo apt-get remove docker docker-engine docker.io containerd runc

Was told that there was nothing to uninstall. Upon using the command given in the guide for reinstalling, the CLI response included the following:

phil@UbuntuDesktop:~$ sudo apt-get install docker-ce docker-ce-cli containerd.io
Reading package lists... Done
Building dependency tree       
Reading state information... Done
containerd.io is already the newest version (1.4.3-1).
containerd.io set to manually installed.
docker-ce is already the newest version (5:0.0.0-20190727010531-15bdbd76a5-0~ubuntu-bionic).
docker-ce-cli is already the newest version (5:0.0.0-20190727010531-15bdbd76a5-0~ubuntu-bionic).
docker-ce-cli set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

How does the data shown after the $ docker version command (see first post) relate to the versions listed on the Release Notes area which says we are at 20.10?

I think I must be okay using the version I have, but I’d feel better if I a better grip on what the documentation is saying.

Check your installed APT repositories. Delete everything related to Docker and start the installation process from the beginning. Your Docker doesn’t even have a version number… It looks like a nightly build for Ubuntu 18.04. If there is no new version in that channel, that can explain why it tells you your Docker is the latest version.

You should also check if you installed Docker using Snap.

2 Likes

Thank you. I did a more complete purge this time. Now running 20.10.12. Your explanation of how this transpired is a good one.