apt update apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable" apt update apt install docker-ce systemctl status docker
docker search nom_du_module docker container ls --all // -> liste -> ID du container docker stop ID // arret docker rm ID // enlève l'image docker images ls docker stop $(docker ps -a -q) // stop tout docker rm $(docker ps -a -q) // enlève tout
Exemples
docker run -v /home/www/monsite:/var/www/html -p 9000:9000 --restart=always andthensome/docker-php-5.3-fpm docker run -v /home/docker/test12/www:/var/www/html -p 82:80 --restart=always nouphet/docker-php4