Created
January 28, 2019 10:46
-
-
Save Saluki/45d2ebce6bbaad3601fdc52ddbab788a to your computer and use it in GitHub Desktop.
MEDIUM - Container OSQuery - Unused images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Retrieve images not used in active containers | |
SELECT id, tags | |
FROM docker_images | |
WHERE id NOT IN ( | |
SELECT image_id FROM docker_containers | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment