Volumes

Figure 1122. List volumes Slide presentation
> docker volume ls
DRIVER              VOLUME NAME
local               nextcloud_db
local               nextcloud_nextcloud
# ls -al /var/lib/docker/volumes
total 40
drwx------  4 root root  4096 Jun 20 11:13 .
drwx--x--x 14 root root  4096 Jun 20 09:40 ..
-rw-------  1 root root 32768 Jun 20 11:13 metadata.db
drwxr-xr-x  3 root root  4096 Jun 20 11:13 nextcloud_db
drwxr-xr-x  3 root root  4096 Jun 20 11:13 nextcloud_nextcloud

Figure 1123. List orphaned volumes Slide presentation
> docker volume ls -f dangling=true
DRIVER              VOLUME NAME
local               nextcloud_db
local               nextcloud_nextcloud

Figure 1124. Remove volumes Slide presentation
> docker volume rm nextcloud_db nextcloud_nextcloud
nextcloud_db
nextcloud_nextcloud