Last active
June 8, 2024 01:57
-
-
Save sickmz/2fe45975a56adcdd3d9f67842064f796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Add Docker's official GPG key: | |
$ sudo apt-get update | |
$ sudo apt-get install ca-certificates curl gnupg | |
$ sudo install -m 0755 -d /etc/apt/keyrings | |
$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
$ sudo chmod a+r /etc/apt/keyrings/docker.gpg | |
### Add the repository to Apt sources: | |
$ echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ | |
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
$ sudo apt-get update | |
### To install the latest version, run: | |
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
### Add your user to the docker group: | |
$ sudo usermod -aG docker $USER | |
### Run the following command to activate the changes to groups: | |
$ newgrp docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment