update
This commit is contained in:
@ -1,24 +1,47 @@
|
|||||||
# Installation Docker et Docker Compose
|
# Installation Docker et Docker Compose
|
||||||
|
|
||||||
|
Mise à jour du système:
|
||||||
|
```bash
|
||||||
|
apt update && apt full-upgrade
|
||||||
|
```
|
||||||
|
|
||||||
apt update
|
Installation de composant
|
||||||
|
```bash
|
||||||
apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
|
apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
|
||||||
|
```
|
||||||
|
|
||||||
|
Mise en de la nouvelle repository officiel
|
||||||
|
```bash
|
||||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg
|
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/docker-archive-keyring.gpg
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
add-apt-repository \
|
add-apt-repository \
|
||||||
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
"deb [arch=amd64] https://download.docker.com/linux/debian \
|
||||||
$(lsb_release -cs) \
|
$(lsb_release -cs) \
|
||||||
stable"
|
stable"
|
||||||
|
```
|
||||||
|
|
||||||
|
Force mise à jour
|
||||||
|
```bash
|
||||||
apt update
|
apt update
|
||||||
|
```
|
||||||
|
|
||||||
|
Installation
|
||||||
|
```bash
|
||||||
apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
|
apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
|
||||||
|
```
|
||||||
|
|
||||||
|
Mise en place du service
|
||||||
|
```bash
|
||||||
systemctl enable --now docker
|
systemctl enable --now docker
|
||||||
|
```
|
||||||
|
|
||||||
|
Création compte utilisateur
|
||||||
|
```bash
|
||||||
usermod -aG docker $USER
|
usermod -aG docker $USER
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
newgrp docker
|
newgrp docker
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user