Tutorials: Update docker install to the latest instructions on the official website
This commit is contained in:
@@ -32,11 +32,14 @@ Minimum hardware requirements:
|
|||||||
```bash
|
```bash
|
||||||
sudo apt install -y git net-tools putty
|
sudo apt install -y git net-tools putty
|
||||||
|
|
||||||
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
|
# https://docs.docker.com/engine/install/ubuntu/
|
||||||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
sudo apt install -y ca-certificates curl gnupg
|
||||||
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
|
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 update
|
sudo apt update
|
||||||
sudo apt install -y docker docker-ce
|
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||||
|
|
||||||
# Add your username to the docker group, otherwise you will have to run in sudo mode.
|
# Add your username to the docker group, otherwise you will have to run in sudo mode.
|
||||||
sudo usermod -a -G docker $(whoami)
|
sudo usermod -a -G docker $(whoami)
|
||||||
|
|||||||
Reference in New Issue
Block a user