-
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 - Add Docker repositiry 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/nullsudo apt update
- Set permissions to the