Skip to content

Commit

Permalink
fix: hide extra docker-compose output
Browse files Browse the repository at this point in the history
  • Loading branch information
stasadev authored and rfay committed Aug 31, 2023
1 parent 9d83a6a commit baeb897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dockerutil/dockerutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ func ComposeCmd(composeFiles []string, action ...string) (string, string, error)
// Container (or Volume) ... Creating or Created or Stopping or Starting or Removing
// Container Stopped or Created
// No resource found to remove (when doing a stop and no project exists)
ignoreRegex := "(^ *(Network|Container|Volume) .* (Creat|Start|Stopp|Remov)ing$|^Container .*(Stopp|Creat)(ed|ing)$|Warning: No resource found to remove$|Pulling fs layer|Waiting|Downloading|Extracting|Verifying Checksum|Download complete|Pull complete)"
ignoreRegex := "(^ *(Network|Container|Volume) .* (Creat|Start|Stopp|Remov)ing$|^Container .*(Stopp|Creat)(ed|ing)$|Warning: No resource found to remove|Pulling fs layer|Waiting|Downloading|Extracting|Verifying Checksum|Download complete|Pull complete)"
downRE, err := regexp.Compile(ignoreRegex)
if err != nil {
util.Warning("Failed to compile regex %v: %v", ignoreRegex, err)
Expand Down

0 comments on commit baeb897

Please sign in to comment.