Docker

Installation

Désinstaller les paquets problématiques:

for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do apt-get remove $pkg; done

Installer les certificats et le repository

apt-get update apt-get install ca-certificates curl install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ tee /etc/apt/sources.list.d/docker.list > /dev/null apt-get update

Installer docker:

apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Ajouter l'accès au socket à l'utilisateur en cours:

usermod -aG docker $USER

Commandes

docker compose ps –all

docker compose rm odoo

docker compose -f odoo17.yaml down docker compose -f odoo17.yaml up -d

docker container inspect traefik docker container inspect cc83c340d799 docker attach cc83c340d799 donne le stdout

docker stop cc83c340d799

docker exec -it cc83c340d799 /bin/bash