12/27/2021

Upgrade Docker Version Ubuntu

51

To install Docker Engine, you need the 64-bit version of one of these Ubuntuversions: Ubuntu Groovy 20.10; Ubuntu Focal 20.04 (LTS) Ubuntu Bionic 18.04 (LTS) Ubuntu Xenial 16.04 (LTS) Installing Docker on Ubuntu 20.04. To use the latest version of Docker, we will install it from the official Docker repository. Manual upgrade with aptitude. First make update on packages: sudo apt-get update. Then purge packages that are old: sudo apt-get purge -y docker.io docker-engine. Then install latest docker (EE - Enterprice Edition, CE- Community Edition): docker-ce /docker-ee:! WARNING - please be careful - you should change the 'ubuntu-trusty' to your.

I needed to upgrade Go recently on an Ubuntu server I was using to do some Packer builds. The golang version that was installed on my system was 1.10.4. I needed to go to a later version so that I could use the mod subcommand, which isn’t present in version 1.10.

Go is a compiled, statically typed programming language developed by Google. Many modern applications such as Docker and Kubernetes are written in Go.

This article will cover the steps I took to update Go to the later version. First of all you can check the version of Go you have installed by running:

This confirms that I am running go version 1.10.4. In order to update go, we first need to remove this version.

Note: As always, before proceeding with any steps listed in this article, ensure you have tested the process fully, and that you have a backup and restore plan in place – especially if you are working on a production system!

Upgrade docker-compose version ubuntu

Remove the Existing Go Version

The golang-go package can be removed by running the following series of commands:

Upgrade Docker Version Ubuntu

These commands will remove the existing version of Go and it’s dependencies. Once done we can install the new version.

Install Go on Ubuntu

First of all we need to grab the correct install package for our system. These can be found here. I have chosen to use the latest version of Go, which at the time of writing is 1.15.5:

The package can be downloaded easily using wget:

Once the file is downloaded, the contents need to be extracted using unzip:

Next we want to move the extracted directory and it’s contents to /usr/local, which is the recommended location:

With that done, the next step is to set up some environment variables so that we can run Go easily. To do so, edit the .profile file, which can be found in the home directory. I used vim to do so:

Upgrade Docker Version Ubuntu Windows 10

The following lines need to be added:

Save the file once the changes have been made, then load these settings into the shell by running:

With that done, run go to check the version is as expected:

As you can see from the output, the desired version of Go is now installed. We can further test the go upgrade is working as expected by running a simple ‘hello world’ program.

Testing the Go Upgrade

Using your favourite text editor, create a new file named hello.go, which contains the following lines:

Docker

Save the file, then run it using the go run command:

Upgrade Docker Version Ubuntu Windows 7

There we go! An upgraded and working Go on Ubuntu!

  • Most Viewed News

    • El Capitan Unibeast
    • Mac Os X Download Youtube Video
    • Install Docker Locally Windows