Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
elearning:workbooks:centos:6:sec:l110 [2021/02/28 16:40] – admin | elearning:workbooks:centos:6:sec:l110 [2021/02/28 16:45] (Version actuelle) – admin | ||
---|---|---|---|
Ligne 59: | Ligne 59: | ||
====1.1 - Installer docker==== | ====1.1 - Installer docker==== | ||
- | Docker | + | Installer |
- | < | + | ==Mac== |
- | root@debian9: | + | |
- | ... | + | |
- | root@debian9: | + | |
- | Reading package lists... Done | + | |
- | Building dependency tree | + | |
- | Reading state information... Done | + | |
- | ca-certificates is already the newest version. | + | |
- | ca-certificates set to manually installed. | + | |
- | gnupg2 is already the newest version. | + | |
- | gnupg2 set to manually installed. | + | |
- | The following extra packages will be installed: | + | |
- | libcurl3 python3-dbus python3-software-properties unattended-upgrades | + | |
- | Suggested packages: | + | |
- | python-dbus-doc python3-dbus-dbg | + | |
- | The following NEW packages will be installed: | + | |
- | apt-transport-https curl libcurl3 python3-dbus python3-software-properties | + | |
- | software-properties-common unattended-upgrades | + | |
- | 0 upgraded, 7 newly installed, 0 to remove and 1 not upgraded. | + | |
- | Need to get 960 kB of archives. | + | |
- | After this operation, 2,344 kB of additional disk space will be used. | + | |
- | Do you want to continue? [Y/n] | + | |
- | </ | + | |
- | Téléchargez la clef GPG officielle de docker : | + | * Voir le lien **[[https:// |
- | < | + | ==Linux== |
- | root@debian9: | + | |
- | OK | + | |
- | </ | + | |
- | Vérifiez que l'ID de la clef est **9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88** : | + | |
+ | * Debian - voir le lien **[[https:// | ||
+ | * CentOS - voir le lien **[[https:// | ||
+ | * Fedora - voir le lien **[[https:// | ||
- | < | + | ==Windows 7, 8== |
- | root@debian9: | + | |
- | / | + | |
- | -------------------- | + | |
- | pub | + | |
- | Key fingerprint | + | |
- | uid Docker Release (CE deb) < | + | |
- | sub | + | |
- | ... | + | |
- | </ | + | |
- | Ajoutez le dépôt | + | |
+ | * Fermez toutes les machines virtuelles ainsi que VirtualBox, | ||
+ | * Installez **DockerToolBox.exe** (décochez VirtualBox dans la liste de produits à installer), | ||
+ | * Exécutez Docker Toolbox et laissez l' | ||
+ | * Ouvrez VirtualBox. Vous verrez une machine virtuelle Default, | ||
+ | * Ouvrez **cmd**. | ||
- | < | + | ==Windows 10== |
- | root@debian9: | + | |
- | </ | + | |
- | <WRAP center round important> | + | |
- | **Important** - Notez que la commande **lsb_release | + | |
- | </ | + | |
- | Installez maintenant le paquet **docker-ce** : | ||
- | |||
- | < | ||
- | root@debian9: | ||
- | ... | ||
- | root@debian9: | ||
- | Reading package lists... Done | ||
- | Building dependency tree | ||
- | Reading state information... Done | ||
- | The following extra packages will be installed: | ||
- | aufs-tools cgroupfs-mount git git-man libapparmor1 liberror-perl | ||
- | libnih-dbus1 libnih1 makedev mountall plymouth rsync | ||
- | Suggested packages: | ||
- | git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk | ||
- | gitweb git-arch git-cvs git-mediawiki git-svn plymouth-themes | ||
- | The following NEW packages will be installed: | ||
- | aufs-tools cgroupfs-mount docker-ce git git-man libapparmor1 liberror-perl | ||
- | libnih-dbus1 libnih1 makedev mountall plymouth rsync | ||
- | 0 upgraded, 13 newly installed, 0 to remove and 99 not upgraded. | ||
- | Need to get 26.5 MB of archives. | ||
- | After this operation, 123 MB of additional disk space will be used. | ||
- | Do you want to continue? [Y/n] | ||
- | </ | ||
- | |||
- | Dernièrement, | ||
- | |||
- | < | ||
- | root@debian9: | ||
- | Client: Docker Engine - Community | ||
- | | ||
- | API version: | ||
- | Go version: | ||
- | Git commit: | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Server: Docker Engine - Community | ||
- | | ||
- | Version: | ||
- | API version: | ||
- | Go version: | ||
- | Git commit: | ||
- | Built: | ||
- | OS/ | ||
- | Experimental: | ||
- | | ||
- | Version: | ||
- | GitCommit: | ||
- | runc: | ||
- | Version: | ||
- | GitCommit: | ||
- | | ||
- | Version: | ||
- | GitCommit: | ||
- | </ | ||
- | |||
- | <WRAP center round important> | ||
- | **Important** - Docker est composé de trois éléments : un serveur, un client et un ou plusieur Repositories ou Dépôts. Nous reviendrons sur les dépôts dans le détail plus tard dans ce cours. | ||
- | </ | ||
- | |||
- | Re-démarrez la machine virtuelle avant de poursuivre : | ||
- | |||
- | < | ||
- | root@debian9: | ||
- | </ | ||
====1.2 - Démarrer un Conteneur==== | ====1.2 - Démarrer un Conteneur==== |