Skip to content

DotPhaz/docker-lemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker

For run docker compose container :
docker-compose up -d

The docker compose up run the container and -d is for run the process in background.

Stop the container :
docker-compose stop

List containers :
docker-compose ps
this command is for display all the current container who runs on the current project.

List container logs :
docker-container logs -f

Tail the container's logs :
docker-container logs -f [service]
Replace [service] with a service name (e.g. nginx) to display this service's logs only.

Restart the container :
docker-compose restart

Stop and/or Destroy container:
docker-compose down

Stop and/or destroy the containers and their volumes
docker-compose down -v

Delete everything, including images and orphan containers
docker-compose down -v --rmi all --remove-ophans