Project

General

Profile

Actions

Setup Docker in Ubuntu » History » Revision 1

Revision 1/8 | Next »
Gareth Eaton, 08/03/2023 04:38 PM


Setup Docker in Ubuntu

Set up an Ununtu server - we will use 22.10

Update Package Index:

sudo apt update && apt upgrade

Install Prerequisites:

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

Add Docker Repository:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker:

sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io

Start and Enable Docker:

sudo systemctl start docker
sudo systemctl enable docker

Verify Docker Installation:

sudo docker --version
sudo docker info

Run a Test Container:

sudo docker run hello-world

Updated by Gareth Eaton over 1 year ago · 1 revisions