This is an old revision of the document!


docker Linux

installation de docker desktop sur Linux

references

install packages

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

install docker

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]

run docker helloworld

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.
docpublic/systemes/docker_linux.1733605555.txt.gz · Last modified: 2024/12/07 21:05 by adminjp
CC Attribution-Noncommercial-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0