Docker : Installer Docker & Portainer sur Debian

De www.yakakliker.org
Révision datée du 3 juin 2026 à 10:27 par Administrateur (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

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

Liens

https://zatoufly.fr/installer-docker-et-portainer-sur-linux/

https://geekeries.org/2020/04/docker-et-portainer-part-1-les-containeurs-pour-les-debutants/?doing_wp_cron=1780475126.4689099788665771484375

compteur web gratuit sans pub