Untitled

Option 1: Installing Docker from Official Repository

Step 1: Updating the Software Repository

Start by opening a terminal window and updating the local repository:

sudo apt update

Wait for the process to complete.

Step 2: Downloading Dependencies

Allow your Ubuntu 20.04 system to access the Docker repositories over HTTPS by running:

sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

The above-mentioned command:

Step 3: Adding Docker’s GPG Key

Next, add the GPG key to ensure the authenticity of the software package:

curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo apt-key add -

Step 4: Installing the Docker Repository

Now install the Docker repository using the command: