Skip to main content

Install docker on Ubuntu 20.04

There is a little problem because there is no Docker repository for Focal fossa yet. Based on standard documentation, only repository modified:

https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

$ sudo apt-get update

$ sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Point 3 from documentation where we need to add repository, just add older one:

$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu eoan test"

That is all, now you can install Docker:

 $ sudo apt-get update
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io

And test it:

sudo docker run hello-world

Docker on Ubuntu 20.04

Docker compose you can install without any problem using standard documentation.

Add new comment

CAPTCHA

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

We use cookies on our website to enhance your user experience. We also use Google analytics and ads.

Click here to read more I've read it