Home  >  Article  >  Backend Development  >  laradock environment docker-compose operation

laradock environment docker-compose operation

藏色散人
藏色散人forward
2019-07-26 14:19:303271browse

All the following commands need to be run in the laradock folder in command line mode

Open nginx

docker-compose up -d nginx

Stop nginx

docker-compose stop nginx

Stop all running containers, but do not delete the containers

docker-compose stop

Stop and delete running containers

docker-compose down

View existing or running containers

docker-compose ps

Enter nginx and reach the bash command interactive interface

docker-compose exec nginx bash

View nginx logs

docker-compose logs nginx

Continuously check nginx logs, output if there is a log, wait if there is no log

docker-compose logs -f nginx

Delete all containers

docker rm `docker ps -a -q`

Delete all images

docker rmi `docker images -q`

Delete all unused images that docker-compose considers

docker image prune

Delete all existing images

docker image prune --force --allordocker image prune -f -a

Delete all stopped containers

docker container prune

Stop xDebug

php-fpm/xdebug stop

Open xDebug

php-fpm/xdebug start

View status

php-fpm/xdebug status

The above is the detailed content of laradock environment docker-compose operation. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete