Skip to content
This repository was archived by the owner on Nov 23, 2022. It is now read-only.

Commit e060b0b

Browse files
authored
docker image prune -a
I would like to reclaim more space. In my case it was like 8GB after couple month of daily deploys More info apocas/dockerode#429
1 parent 5725c91 commit e060b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/docker/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ exports.pruneDocker = async () => {
3838
// TODO: re-enable pruneBuilder once fixed in dockerode
3939
// await docker.pruneBuilder();
4040
logger.debug('Running prune..');
41-
const result = await Promise.all([docker.pruneImages(), docker.pruneVolumes()]);
41+
const result = await Promise.all([docker.pruneImages({ filters : { dangling : { 'false' : true } } }), docker.pruneVolumes()]);
4242
logger.debug('Prune done:', result);
4343
return result;
4444
};

0 commit comments

Comments
 (0)