-
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:
1. Set permissions to the
/etc/apt/keyringsdirectory:sudo install -m 0755 -d /etc/apt/keyrings1. Load the Docker GPG key:sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc1. Update the loaded key permissions:sudo chmod a+r /etc/apt/keyrings/docker.asc1. Add Docker repositiry to theaptsources: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