DOCKER sur Debian 9

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

https://doc.ubuntu-fr.org/docker_lamp

MYSQL CHANGE PASSWORD

/etc/init.d/mysql stop
/usr/sbin/mysqld --skip-grant-tables
mysql> FLUSH PRIVILEGES;
mysql> SET PASSWORD FOR root@'localhost' = PASSWORD('votre_nouveau_mot_de_passe');
mysql> FLUSH PRIVILEGES;
mysql> exit
/etc/init.d/mysql start

// création user grant all
CREATE USER [IF NOT EXISTS] 'monadmin'@'%' IDENTIFIED BY 'monpass';
GRANT ALL  ON  *.* TO 'monadmin'@'%';