1
0
mirror of https://github.com/RostislavDugin/certbot-nginx-docker.git synced 2025-07-02 22:36:51 +02:00
This commit is contained in:
Rostislav Dugin
2024-02-08 22:33:55 +03:00
commit c491004950
10 changed files with 133 additions and 0 deletions

9
install-docker.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
apt-get remove docker docker-engine docker.io containerd runc
apt-get install ca-certificates curl gnupg lsb-release
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin