laradock environment docker-compose operation

藏色散人
Release: 2023-04-07 06:52:01
forward
3347 people have browsed it

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template