This is an old revision of the document!
installation de docker desktop sur Linux
d'abord une mise a jour des repos
root@debL74:~# apt-get update
retrait d'eventuels anciennes installations docker deprecated
root@debL74:~# for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
# keys root@debL74:~# apt-get install ca-certificates curl root@debL74:~# curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc root@debL74:~# chmod a+r /etc/apt/keyrings/docker.asc # apt repo root@debL74:~# 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" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null root@debL74:~# cat /etc/apt/sources.list.d/docker.list deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian bookworm stable root@debL74:~# apt-get update
root@debL74~# apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin root@debL74-14212:~# uname -a Linux debL74-14212 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux root@debL74-14212:~# apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : docker-ce-rootless-extras pigz slirp4netns Paquets suggérés : aufs-tools cgroupfs-mount | cgroup-lite Les NOUVEAUX paquets suivants seront installés : containerd.io docker-buildx-plugin docker-ce docker-ce-cli docker-ce-rootless-extras docker-compose-plugin pigz slirp4netns 0 mis à jour, 8 nouvellement installés, 0 à enlever et 3 non mis à jour. Il est nécessaire de prendre 123 Mo dans les archives. Après cette opération, 441 Mo d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n]
root@debL74# docker run hello-world Unable to find image 'hello-world:latest' locally latest: Pulling from library/hello-world c1ec31eb5944: Pull complete Digest: sha256:305243c734571da2d100c8c8b3c3167a098cab6049c9a5b066b6021a60fcb966 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly.
root@debL74# service docker status ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; preset: enabled) Active: active (running) since Sat 2024-12-07 23:03:23 CET; 3min 25s ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Main PID: 939669 (dockerd) Tasks: 14 Memory: 31.2M CPU: 598ms CGroup: /system.slice/docker.service └─939669 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock