fix(clean): images are now cleaned in a more thorough way

This commit is contained in:
2018-10-28 21:40:31 +01:00
parent d1fd76e8d0
commit 7b50ceb69f
3 changed files with 41 additions and 95 deletions

View File

@ -50,7 +50,7 @@ export let run = () => {
await smartshellInstance.exec(`docker rm $(docker ps -a -q)`);
plugins.beautylog.ora.text('removing images...');
await smartshellInstance.exec(`docker rmi $(docker images -q -f dangling=true)`);
await smartshellInstance.exec(`docker rmi -f $(docker images -q -f dangling=true)`);
plugins.beautylog.ora.text('removing all other images...');
await smartshellInstance.exec(`docker rmi $(docker images -a -q)`);