Update confirmed scan suggest message

Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
Guillaume Tardif 2021-02-25 10:22:09 +01:00
parent accc65ae8b
commit c1373d2e63
1 changed files with 1 additions and 7 deletions

View File

@ -23,7 +23,6 @@ import (
"io/ioutil"
"os"
"path/filepath"
"strings"
pluginmanager "github.com/docker/cli/cli-plugins/manager"
"github.com/docker/cli/cli/command"
@ -40,12 +39,7 @@ func displayScanSuggestMsg(ctx context.Context, builtImages []string) {
if !scanAvailable() || scanAlreadyInvoked(ctx) {
return
}
commands := []string{}
for _, image := range builtImages {
commands = append(commands, fmt.Sprintf("docker scan %s", image))
}
allCommands := strings.Join(commands, ", ")
fmt.Printf("Try scanning the image you have just built to identify vulnerabilities with Dockers new security tool: %s\n", allCommands)
fmt.Println("Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them")
}
func scanAlreadyInvoked(ctx context.Context) bool {