Docker
De Linuxmemo.
(Différences entre les versions)
(→Gestion des images) |
|||
Ligne 1 : | Ligne 1 : | ||
[[Catégorie:Linux sysadmin]] | [[Catégorie:Linux sysadmin]] | ||
+ | https://github.com/wsargent/docker-cheat-sheet/blob/master/README.md | ||
==Install== | ==Install== | ||
apt-get install docker.io | apt-get install docker.io |
Version du 20 juin 2016 à 09:02
https://github.com/wsargent/docker-cheat-sheet/blob/master/README.md
Sommaire |
Install
apt-get install docker.io
via proxy http
https://docs.docker.com/engine/admin/systemd/#http-proxy
sudo mkdir /etc/systemd/system/docker.service.d sudo vim /etc/systemd/system/docker.service.d/http-proxy.conf [Service] Environment="HTTP_PROXY=http://proxy.example.com:80/" "HTTPS_PROXY=https://proxy.example.com:80/" sudo systemctl daemon-reload sudo systemctl show --property=Environment docker sudo systemctl restart docker
Gestion des images
https://index.docker.io/ ou https://hub.docker.com/
- Rechercher une image
docker pull nomimage
- Télécharger une image depuis les dépots:
docker search nomimage
- Démarrer une image
docker start nomimage
- Arrêter une image
docker stop nomimage
- Exécuter une commande dans image
docker run -i -t debian /bin/bash