Docker : Installer Docker & Portainer sur Debian
De www.yakakliker.org
Installation de Docker
- Upgrades
apt update && apt full-upgrade -y
- Installation de Docker
apt install docker.io -y
- Vérification de l'installation
systemctl status docker
Installation de Docker-compose
- Installation
apt install docker-compose -y
- Vérification de l'installation
docker-compose -v
Installation de Portainer
mkdir /srv/docker
mkdir /srv/docker/portainer
cd /srv/docker/portainer
- Edition du fichier docker-compose.yaml
nano docker-compose.yaml
version: '3.3'
services:
portainer-ce:
container_name: portainer
ports:
- 9443:9443
- 9000:9000
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- data:/data
restart: always
image: portainer/portainer-ce:latest
volumes:
data:
- Déploiement
docker-compose up -d
- Connexion :
- Création de l'utilisateur User/Mot de passe
Liens
https://zatoufly.fr/installer-docker-et-portainer-sur-linux/