Difference between revisions of "Docker install"
Jump to navigation
Jump to search
(Created page with "# Debian ``` 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/debia...") |
|||
Line 1: | Line 1: | ||
+ | # Ubuntu | ||
+ | ``` | ||
+ | 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/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||
+ | sudo chmod a+r /etc/apt/keyrings/docker.gpg | ||
+ | |||
+ | echo \ | ||
+ | "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] 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-get update | ||
+ | |||
+ | sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | ||
+ | |||
+ | sudo docker run hello-world | ||
+ | |||
+ | ``` | ||
+ | |||
+ | |||
# Debian | # Debian | ||
``` | ``` |
Revision as of 17:38, 12 May 2023
Ubuntu
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/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] 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-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo docker run hello-world
Debian
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 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/nul sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo docker run hello-world