How to update Docker CE Ubuntu

Its always good to test things first, so let’s do a dry run to see if the update succeeds:

sudo apt upgrade --with-new-pkgs --dry-run docker-ce

If all looks good, let’s perform the actual update of docker-ce:

sudo apt upgrade --with-new-pkgs docker-ce