get image list at startup
to ensure that it works
@@ -39,6 +39,7 @@ def main():
path_to_check = os.environ['PATH_TO_CHECK']
inode_avail_threshold = float(os.environ['INODE_AVAIL_THRESHOLD'])
client = docker.from_env()
+ images = get_docker_images(client)
print(f'Pruning docker images when {path_to_check} has less than {inode_avail_threshold * 100}% inodes free')
