Answers for "volumes"

0

volumes

# Remove specified volume.
docker volume rm test_vol

# Force removal using "-f" or "--force".
docker volume rm -f test_vol
docker volume rm --force test_vol

# Remove unused volumes.
docker volume rm -f $(docker volume ls -f "dangling=true")
Posted by: Guest on October-20-2021
0

volumes

# Remove unused volumes.
docker volume prune -f
Posted by: Guest on October-20-2021
0

volumes

# List all volumes.
docker volume ls

# Filter output using "-f" or "--filter".
docker volume ls -f "dangling=true"
docker volume ls --filter "driver=local"

# Display only volume name using "-q" or "--quiet".
docker volume ls -q -f "driver=local"
docker volume ls --quiet --filter "driver=local"
Posted by: Guest on October-20-2021

Browse Popular Code Answers by Language