The latest version docker docker-compose and arrange installation tool scripts
1 git clone https://github.com/luckman666/shell_scripts.git 2 cd shell_scripts 3 chmod -R 755 . 4 ./deploy_docker_and_composes.sh
docker-compose finishing commonly used commands:
docker-compose -f my.yaml version View docker-compose version information
docker-compose -f lnmp.yaml images listed mirroring
docker-compose -f lnmp.yaml images -q listed image ID
Docker-Compose built up -d Construction start nignx container Nginx
docker-compose exec nginx bash log into the vessel nginx
docker-compose -f lnmp.yaml exec nginx env runs a command in the container
docker-compose down to remove all nginx container, mirror
docker-compose ps show all containers
docker-compose restart nginx restart nginx container
docker-compose run --no-deps --rm php-fpm php -v in php-fpm does not start the associated container, and execute php -v after the execution complete the removal of the container vessel
Construction docker-compose build nginx mirror.
docker-compose build --no-cache nginx unbuffered construct.
docker-compose logs nginx nginx logs view
docker-compose logs -f nginx view real-time log of nginx
docker-compose config -q verification (docker-compose.yml) file configuration, when properly configured, does not output anything, when the configuration file error, outputs an error message.
docker-compose events --json nginx nginx output of the log as the json docker
docker-compose pause nginx pause nignx container
docker-compose unpause nginx recovery container ningx
docker-compose rm nginx delete container (container must be closed before deleting)
docker-compose stop nginx container stop nignx
docker-compose start nginx start container nignx
docker-compose -f my.yaml scale nginx = 2 to the expansion vessel nginx two
docker-compose -f my.yaml top displays running processes
docker-compose -f my.yaml top nginx specify a particular service
welcome public attention to my personal number, the more learning materials waiting for you to come and collect.