Ubuntu Docker Upgrade

UbuntuUbuntu Docker Upgrade

Step 1: Upgrade and Update. Step 2: Install curl. Step 3: Download the Latest Docker Version. Step 4: Change File Permission. Step 5: Check Docker Compose Version. Uninstall Docker Compose on Ubuntu. Step 1: Delete the Binary. Step 2: Uninstall the Package. Step 3: Remove Software Dependencies. Upgrade Docker Engine. To upgrade Docker Engine, first run sudo apt-get update, then follow the installation instructions, choosing the new version you want to install. Install from a package. If you cannot use Docker’s repository to install Docker Engine, you can download the.deb file for your release and install it manually. $ docker-compose -version docker-compose version: 1.4.0 And $ docker -version Docker version 1.11.1, build 5604cbe When I try to update it, I get the following: $ sudo apt-get upgrade docker-engine Reading package lists. Done Building dependency tree Reading state information.

At present, the latest docker-compose version, which could be installed under Ubuntu 18, 20, and 21 is the 1.25 and 1.27 versions. There may be significant changes included in the latest versions and if one wants to install it there are two options:

  • Manual installation from docker from the github – https://github.com/docker/compose/releases
  • Install it from pip3.

For example, depends_on.service.condition: service_healthy is added with version 1.28. Using this new feature it is fairly easy to implement waiting for a docker container (service) before starting another docker.

Here is how easy it is to install and to have the latest stable docker-compose version, which is 1.29.2 at the writing of this article:

STEP 1) Update and upgrade.

Ubuntu Docker UpgradeDocker

Do this step always before installing new software.

STEP 2) Install pip3 and docker.

pip 3 is the package installer for Python 3. When using docker-compose it is supposed to have the very Docker software, too.

STEP 3) Install docker-compose using pip3.

And here is what a version command prints:

Just to note, installing packages using other programs other than apt may lead to future conflicts!

Ubuntu Docker Upgrade Windows 7

The whole console output of the pip3 installing docker-compose