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

Commit c1373d2

Browse files
committed
Update confirmed scan suggest message
Signed-off-by: Guillaume Tardif <[email protected]>
1 parent accc65a commit c1373d2

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

local/compose/scan_suggest.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
"io/ioutil"
2424
"os"
2525
"path/filepath"
26-
"strings"
2726

2827
pluginmanager "github.com/docker/cli/cli-plugins/manager"
2928
"github.com/docker/cli/cli/command"
@@ -40,12 +39,7 @@ func displayScanSuggestMsg(ctx context.Context, builtImages []string) {
4039
if !scanAvailable() || scanAlreadyInvoked(ctx) {
4140
return
4241
}
43-
commands := []string{}
44-
for _, image := range builtImages {
45-
commands = append(commands, fmt.Sprintf("docker scan %s", image))
46-
}
47-
allCommands := strings.Join(commands, ", ")
48-
fmt.Printf("Try scanning the image you have just built to identify vulnerabilities with Docker’s new security tool: %s\n", allCommands)
42+
fmt.Println("Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them")
4943
}
5044

5145
func scanAlreadyInvoked(ctx context.Context) bool {

0 commit comments

Comments
 (0)