include docker readme

This commit is contained in:
Florian Hoss 2021-12-08 07:28:28 +01:00
parent 5a5ab07714
commit b9e6dace9b
2 changed files with 37 additions and 1 deletions

34
Docker/README.md Normal file
View file

@ -0,0 +1,34 @@
# Install Docker on Debian
## Prepare the system
```sudo apt-get update```
```sudo apt-get install ca-certificates curl gnupg lsb-release```
```curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg```
```echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null```
## Install Docker Engine
```sudo apt-get update```
```sudo apt-get install docker-ce docker-ce-cli containerd.io```
## Install Docker Compose V2
```mkdir -p /usr/local/lib/docker/cli-plugins```
```curl -SL https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose```
```chmod +x /usr/local/lib/docker/cli-plugins/docker-compose```
## Verify
```docker --version``` -> Docker version ..., build ...
```docker compose version``` -> Docker Compose version v2.0.1
## Add current user to the docker group
```sudo usermod -aG docker ${USER}```

View file

@ -7,3 +7,5 @@ This repository should give you a good start on how to setup a debian server to
[Secure the System](https://github.com/flohoss/setupDebianServer/tree/main/SecureSystem)
[Create an informative Message of the Day](https://github.com/flohoss/setupDebianServer/tree/main/MessageOfTheDay)
[Install Docker on Debian](https://github.com/flohoss/setupDebianServer/tree/main/Docker)