Docker
De Linuxmemo.
Version du 20 juin 2016 à 09:02 par Linuxmemo (discuter | contributions)
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