Skip to content

Commit

Permalink
new prune
Browse files Browse the repository at this point in the history
  • Loading branch information
pieceowater committed Sep 24, 2024
1 parent d2ccd27 commit ad3b685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/scanAndApply.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func applyDockerComposeUpdates(composeFilePath string) error {

// Check if Docker is available before pruning
if commandExists("docker") {
pruneCmd := exec.Command("docker", "image", "prune", "-f")
//pruneCmd := exec.Command("docker", "system", "prune", "-f")
pruneCmd := exec.Command("docker", "image", "prune", "-a")
fmt.Printf("%sRunning: %s\n", blue, pruneCmd.String())
pruneCmd.Stdout = os.Stdout
pruneCmd.Stderr = os.Stderr
Expand Down

0 comments on commit ad3b685

Please sign in to comment.