-
Notifications
You must be signed in to change notification settings - Fork 0
Docker
Andrei Montchik edited this page Jul 11, 2024
·
22 revisions
sudo apt updatesudo apt install ca-certificates- Add Docker's official GPG key:
- Set permissions to the
/etc/apt/keyringsdirectory:sudo install -m 0755 -d /etc/apt/keyrings - Load the Docker GPG key:
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc - Update the loaded key permissions:
sudo chmod a+r /etc/apt/keyrings/docker.asc
- Set permissions to the
- Add Docker repository to the
aptsources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt update- Install the latest Docker version:
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin - Verify the installation:
sudo docker run hello-world