Accueil > Virtualisation > Virtualisation : docker - installation
Virtualisation : docker - installation
Publié le 26 avril 2021, dernière mise-à-jour le 2 mai 2024, 2 visites, 25234 visites totales.
INSTALLER DOCKER
2021 : https://docs.docker.com/engine/inst...
obsolète ? : adduser machin docker
2020 buster
https://computingforgeeks.com/install-docker-and-docker-compose-on-debian-10-buster/
ajouter l’utilisateur au groupe
2019 :
installation : https://store.docker.com/editions/community/docker-ce-server-debian?tab=description
- # Jessie deb8 /stretch :
root# apt-get -y install apt-transport-https ca-certificates curl software-properties-common
# Wheezy deb 7 :root# apt-get -y install apt-transport-https ca-certificates curl python-software-properties
root# curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
-
root# add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" && apt-get update
- root# adduser LeNomDeLutilisateur docker
- se déconnecter , se reconnecter.
- docker run hello-world
système d(’administration : ansible,puppt...
2019 :
INSTALLATION
https://docs.docker.com/install/linux/docker-ce/debian/
télécharger les debs sur https://download.docker.com/linux/debian/dists/stretch/pool/stable/amd64/ :
- méthode 1 : root# apt-get install docker docker.io
- méthode 2 d’après https://docs.docker.com/engine/installation/linux/debian/ , essayé positivement sur sur lmde2
-
root# apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
-
root# curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
-
root# apt-key fingerprint 0EBFCD88
pour vérifier -
root# echo "deb [arch=amd64] https://download.docker.com/linux/debian jessie stable" >> /etc/apt/sources.list.d/additional-repositories.list && apt-get update
-
root# apt-cache madison docker-ce
donne :
docker-ce | 17.03.1~ce-0~debian-jessie | https://download.docker.com/linux/debian/ jessie/stable amd64 Packages
docker-ce | 17.03.0~ce-0~debian-jessie | https://download.docker.com/linux/debian/ jessie/stable amd64 Packages
-
apt-get install docker-ce=17.03.1~ce-0~debian-jessie
- TEST :
docker run hello-world
- docker non root :
groupadd docker && usermod -aG docker UTILISATEUR
- Uninstall Docker :
apt-get purge docker-ce && rm -rf /var/lib/docker
Documentation
https://fr.wikipedia.org/wiki/Docker_%28logiciel%29
https://linuxfr.org/users/xion345/journaux/docker-la-plateforme-a-la-mode
https://www.wanadev.fr/23-tuto-docker-comprendre-docker-partie1/
https://linuxfr.org/news/docker-tutoriel-pour-manipuler-les-conteneurs
https://putaindecode.io/fr/articles/docker/dockerfile/
https://putaindecode.io/fr/articles/docker/
https://www.tecmint.com/install-run-and-delete-applications-inside-docker-containers/
https://www.ovh.com/fr/blog/docker-administrer-bases-de-donnees-une-idee-folle/
Les images créées sont dans /var/lib/docker/overlay2/