最終更新:2024-10-21 (月) 13:51:13 (453d)  

docker compose down
Top / docker compose down

https://docs.docker.com/reference/cli/docker/compose/down/

docker compose down --rmi all --volumes --remove-orphans

  • --remove-orphansRemove containers for services not defined in the Compose file
    --rmiRemove images used by services. "local" remove only images that don't have a custom tag ("local"|"all")
    -t, --timeoutSpecify a shutdown timeout in seconds
    -v, --volumesRemove named volumes declared in the "volumes" section of the Compose file and anonymous volumes attached to containers