windows docker-toolbox
sh start.sh
ssh account : docker/tcuser
docker-machine.exe ip
sudo systemctl start/stop/restart/status docker
镜像操作
sudo docker pull mysql
sudo docker pull redis
sudo docker pull elasticsearch
sudo docker pull foxiswho/nginx-php
sudo docker pull memcached
容器操作
sudo docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql
sudo docker run --name redis -p 6379:6379 -d redis:latest
sudo docker run --name es -p 9200:9200 -p 9300:9300 -d elasticsearch:latest
sudo docker run --name nginx-php --link mysql:db --link es:es --link redis:redis -p 80:80 -v /home/docker/www:/www/wwwroot -d foxiswho/nginx-php
sudo docker run --name nginx-php -p 80:80 -v /home/docker/www:/www/wwwroot -d foxiswho/nginx-php
image save/load
containner export/import
dorcker rmi imageid
dorcker rm containnerid
docker start/restart/stop/status containner-name