11/23/2021»»Tuesday

Ubuntu Latest Docker

Next, you will need to install Docker on your server. By default, the latest version of Docker is not available in the Ubuntu 18.04 server default repository. So, you will need to add the repository for that. First, download and add Docker CE GPG key with the following command: $ $.

For install instructions, see Install Docker Desktop on Windows. Follow these instructions if you are running the Docker daemon and client directly on Microsoft Windows Server and want to install Docker Compose. Start an “elevated” PowerShell (run it as administrator). Search for PowerShell, right-click, and choose Run as administrator. Docker Engine 1.8+ on any supported Linux distribution or Docker for Mac/Windows. For more information, see Install Docker. For more information on hardware requirements and processor support, see SQL Server 2019: Hardware and software requirements. Docker overlay2 storage driver. This is the default for most users. Download Ubuntu desktop, Ubuntu Server, Ubuntu for Raspberry Pi and IoT devices, Ubuntu Core and all the Ubuntu flavours. Ubuntu is an open-source software platform that runs everywhere from the PC to the server and the cloud.

This tutorial will show you how to install the latest version of Docker and Docker Compose on Ubuntu 20.04. We’ll also configure the system, so you don’t need to use sudo to run Docker commands.

Note: The steps in this tutorial show you how install Docker manually. Read How to install Docker with Ansible to learn how to automate the process.

Advertisement

Prerequisites

Before we begin you’ll need access to a clean installation of Ubuntu 20.04. This tutorial shows you how to install it on VMware Fusion (or VMware Workstation if you’re a Windows or Linux user).

You may also want to update your packages to the latest versions by running:

Advertisement

Step 1: Install Dependencies

Run the following command to install the required dependencies.

Ubuntu Latest Docker-compose

Step 2: Add Docker Signing Key

Verify the key is correct by running the following command and checking the output matches 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88:

Advertisement

Step 3: Add Docker Stable Repository

Run the following command to add the stable Docker repository to /etc/apt/sources.list

Update package information:

Step 4: Install Docker

Run the following command to install Docker:

Advertisement

Step 5: Add User to Docker group

The last step is to add your local user to the docker group so that you don’t need to use sudo when running Docker commands. Run the following command to add it to the group:

Sign out then back in for the changes to take effect. You should now be able to run an image without using sudo. You can test this by running the hello-world image:

Advertisement

Installing Docker Compose

Docker Compose can be installed with apt by running:

Ubuntu Latest Docker

However, using apt will not install the latest version. You can install the latest with curl by running the following commands:

Ubuntu Latest Docker

Note: replace 1.27.4 in the URL above with the version you want to install.

Conclusion

In this tutorial we installed the latest version of Docker and Docker Compose on Ubuntu Linux 20.04.

Ubuntu Latest Docker Update

These steps are good for one time installations, but if you’ve got hundreds of servers to configure, you might want to automate this process. This tutorial will show you how to automate the installation of Docker with Ansible.

Written by Tony Mackay

Ubuntu Latest Docker Operating System

Software developer, sysadmin and writer. Find me here: https://tonymackay.net

Most Viewed Posts