Docker Desktop and Pop-OS

Installing Docker-Desktop on PopOS. As it isn't in the Pop!-Shop we need to add the repo and some other packages. The actual installation of Docker-Desktop is the recommended way for any Ubuntu installation.

Docker Desktop and Pop-OS

Pop!OS has Podman in the Pop!-Shop, but not Docker. If you want to use Docker, you need to add some packages and a software repository to your system.

Why Docker

I'm using Docker locally for a variety of reasons. I use Docker on all my servers. Furthermore, I can get system-level software and configurations without having to install a bunch of stuff locally. I employ Docker to create a customized environment for testing and/or development. Some other factors may prevent me from using it. — Pick the right tools for the task at hand. ¯\_(ツ)_/¯ or womm

Installing Docker

Install the prerequisite packages

Make sure all your packages and repos are up-to-date. Add these packages, you may already have these. They handle important things, like allowing apt to pull resources over HTTPS.

sudo apt update && sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Add the Docker software repository

Download and install the Docker GPG key with:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/docker.gpg > /dev/null

Add the Docker repo to be used by apt for installing Docker. This command runs a check of your OS version and includes that in the repository line.

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update your repos again with the Docker repo added to your machine, you can pull updates again, and this time receive the updates from the docker repository.

sudo apt update

Install Docker

This will install docker community edition and the CLI along with a container lifecycle management tool. It will also install the docker build tool and docker-compose, but those last two packages can be left off if you don’t need them.

sudo apt install -y docker-ce 

It also installs the following docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras.

Test your install with the traditional hello-world container that Docker provides.

sudo docker run hello-world

Install Docker Desktop on Ubuntu

Download latest DEB package and install the package with apt as follows:

 sudo apt-get install ./docker-desktop-<version>-<arch>.deb

Nerdy stuff

Why Docker? No more WOMM:¯\_(ツ)_/¯ = Works On My Machine 🤣


References

Docker Desktop [1]


  1. Docker.com Install Docker desktop ↩︎