On docker build and docker pull commands, display a hint to docker scout quickview.
Hints are enabled by default.
To disable them:
use the --quiet/-q quiet flag
set the DOCKER_CLI_HINTS environment variable with a false (according to Go) value
add a -x-cli-hints configuration in ~/.docker/config.json file under {plugins: {-x-cli-hints: {enabled}}}
In case of build, if --push, --progress or --output flag are used, hints are not displayed to keep it working on main (and less advanced) case.
There's no hint for buildx build.
In case of a docker build the docker scout quickview command doesn't need an argument as it will take the most recently built image by default.
In case of a docker pull the pulled image is extracted from the command arguments.
What I did
On
docker build
anddocker pull
commands, display a hint todocker scout quickview
.Hints are enabled by default. To disable them:
--quiet
/-q
quiet flagDOCKER_CLI_HINTS
environment variable with a false (according to Go) value-x-cli-hints
configuration in~/.docker/config.json
file under{plugins: {-x-cli-hints: {enabled}}}
In case of
build
, if--push
,--progress
or--output
flag are used, hints are not displayed to keep it working on main (and less advanced) case.There's no hint for
buildx build
.In case of a
docker build
thedocker scout quickview
command doesn't need an argument as it will take the most recently built image by default. In case of adocker pull
the pulled image is extracted from the command arguments.The output already handles plain/tty display:
Related issue
https://github.com/docker/team-ssc-dev-features/issues/306
(not mandatory) A picture of a cute animal, if possible in relation with what you did![bela-bako-CT0FXtDtYII-unsplash](https://github.com/docker/compose-cli/assets/1542321/e9fcb78c-3505-4ecc-8c38-871f5b54b4dd)