feat: Docker installation.
This commit is contained in:
parent
f5d131a749
commit
27df2eb01c
9
docker/README.md
Normal file
9
docker/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Install Docker
|
||||||
|
|
||||||
|
## How to
|
||||||
|
|
||||||
|
```bash
|
||||||
|
REMOTE_USER=user
|
||||||
|
REMOTE_HOST=host.example.com
|
||||||
|
ssh {REMOTE_USER}@{REMOTE_HOST} 'sudo /bin/bash -s' < install.sh
|
||||||
|
```
|
||||||
22
docker/install.sh
Normal file
22
docker/install.sh
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
## Install dependencies
|
||||||
|
|
||||||
|
apt update
|
||||||
|
apt install -y ca-certificates curl gnupg lsb-release
|
||||||
|
|
||||||
|
## Add GPG Key
|
||||||
|
|
||||||
|
mkdir -p /etc/apt/keyrings
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||||
|
|
||||||
|
## Add repository
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
## Install docker
|
||||||
|
|
||||||
|
apt update
|
||||||
|
apt install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
||||||
Loading…
x
Reference in New Issue
Block a user