Docker compose down with volumes

Stop and remove containers, networks, and volumes

docker compose down -v

tool
docker46 commands
tags
dockercompose

More docker commands

  • docker system df -v

    Detailed breakdown of disk usage per image, container, volume

  • docker exec -it -u root <container> bash

    Enter container as root even if default user is non-root

  • docker cp ./local-file.conf <container>:/etc/app/config.conf

    Inject a file into a running container without rebuild

  • docker load < img.tar.gz

    Import an image exported with docker save

  • docker exec -it registry bin/registry garbage-collect /etc/docker/registry/config.yml

    Free disk space in a self-hosted Docker Registry

all 46 docker commands