Update README.md
This commit is contained in:
parent
753375b4cc
commit
3d9bb84616
1 changed files with 11 additions and 29 deletions
|
@ -1,41 +1,23 @@
|
|||
# Install Docker on Debian
|
||||
|
||||
## Prepare the system
|
||||
Debian: [https://docs.docker.com/engine/install/debian/](https://docs.docker.com/engine/install/debian/)
|
||||
|
||||
```sudo apt-get update```
|
||||
Ubuntu: [https://docs.docker.com/engine/install/ubuntu/](https://docs.docker.com/engine/install/ubuntu/)
|
||||
|
||||
```sudo apt-get install ca-certificates curl gnupg lsb-release```
|
||||
CentOS: [https://docs.docker.com/engine/install/centos/](https://docs.docker.com/engine/install/centos/)
|
||||
|
||||
```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
|
||||
|
||||
```sudo mkdir -p /usr/local/lib/docker/cli-plugins```
|
||||
|
||||
x86/64 Systems:
|
||||
|
||||
```sudo curl -SL https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose```
|
||||
|
||||
ArmV7 Systems:
|
||||
|
||||
```sudo curl -SL https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-armv7 -o /usr/local/lib/docker/cli-plugins/docker-compose```
|
||||
|
||||
```sudo chmod +x /usr/local/lib/docker/cli-plugins/docker-compose```
|
||||
Fedora: [https://docs.docker.com/engine/install/fedora/](https://docs.docker.com/engine/install/fedora/)
|
||||
|
||||
## Verify
|
||||
|
||||
```docker --version``` -> Docker version ..., build ...
|
||||
`docker --version`
|
||||
|
||||
```docker compose version``` -> Docker Compose version v2.6.1
|
||||
-> Docker version ..., build ...
|
||||
|
||||
`docker compose version`
|
||||
|
||||
-> Docker Compose version ...
|
||||
|
||||
## Add current user to the docker group
|
||||
|
||||
```sudo usermod -aG docker ${USER}```
|
||||
`sudo usermod -aG docker ${USER}`
|
||||
|
|
Loading…
Reference in a new issue