Volume Commands

        1. $ docker rm [container id] - removes container, not volume (b/c mult cont)
        2. $ docker rm -v [container id] - removes container AND volume (but local file remains)

(only delete volume when ALL containers are done using it)

        1. $ docker volume - list all volume commands
        2. $ docker volume ls - lists all volumes
        3. $ docker volume rm docker volume ls -q -f dangling=true - remove all dangling volumes

results matching ""

    No results matching ""