Difference between revisions of "Template:Docker volumes TOC"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 1: | Line 1: | ||
* <code>[[docker volume create]] --name VOLUME_NAME</code> | * <code>[[docker volume create]] --name VOLUME_NAME</code> | ||
+ | * <code>[[docker volume ls]]</code>: https://docs.docker.com/engine/reference/commandline/volume_ls/ | ||
* <code>[[docker volume rm]] VOLUME_NAME</code> | * <code>[[docker volume rm]] VOLUME_NAME</code> | ||
* <code>[[docker volume]]</code>: https://docs.docker.com/engine/reference/commandline/volume/ | * <code>[[docker volume]]</code>: https://docs.docker.com/engine/reference/commandline/volume/ | ||
− | |||
* <code>[[docker volume inspect]] VOLUME</code>: https://docs.docker.com/engine/reference/commandline/volume_inspect/ | * <code>[[docker volume inspect]] VOLUME</code>: https://docs.docker.com/engine/reference/commandline/volume_inspect/ | ||
* <pre>docker inspect -f '{{ .Mounts }}' CONTAINER_NAME</pre> | * <pre>docker inspect -f '{{ .Mounts }}' CONTAINER_NAME</pre> | ||
* <code>[[docker volumes prune]]</code> | * <code>[[docker volumes prune]]</code> | ||
* <code>[[docker system prune]] --volumes</code> | * <code>[[docker system prune]] --volumes</code> |
Latest revision as of 05:55, 16 February 2023
docker volume create --name VOLUME_NAME
docker volume ls
: https://docs.docker.com/engine/reference/commandline/volume_ls/docker volume rm VOLUME_NAME
docker volume
: https://docs.docker.com/engine/reference/commandline/volume/docker volume inspect VOLUME
: https://docs.docker.com/engine/reference/commandline/volume_inspect/docker inspect -f '{{ .Mounts }}' CONTAINER_NAME
docker volumes prune
docker system prune --volumes
Advertising: