Low Orbit Flux Logo 2 F

Docker Install

There exists the option to either install Docker Engine or Docker Desktop.

Docker Engine Installl on Ubuntu

These instructions are basically taken from the official docker documentation but they are easier to follow here because my site is better.

Remove any existing packages and configurations:



sudo apt purge docker.io docker-doc docker-compose podman-docker containerd runc docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras

Optionally remove any existing containers or data:



sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd

Using the Docker Repo:

Update repo and install some needed packages:



sudo apt-get update
sudo apt-get install ca-certificates curl gnupg

Add Docker repo keys:



sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a r /etc/apt/keyrings/docker.gpg

Setup the repo:



echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release