967 words
5 min read

Mastering Docker Scout through Docker Desktop GUI and CLI

By · Docker Captain · CNCF Ambassador · IBM Champion
Cover image for the post 'Mastering Docker Scout through Docker Desktop GUI and CLI'

Docker Scout shows you direct and transitive dependencies in one place, across every image layer. That alone makes container security easier to reason about. I wrote about why it matters before, here: Docker Scout is the Game-Changer in Container Security.

This one is about the how. I’ll run Docker Scout in live use. Both the Docker Desktop GUI and the CLI.

So what does it actually do? Docker Scout reads the contents of an image, reports the packages and vulnerabilities inside, and suggests a fix for each. It also flags updates for your base image, with the tags and digests it recommends. You can filter images by vulnerability data too.

Installing Docker Scout#

You need Docker Desktop to run Docker Scout. It works on Linux, macOS, and Windows. The Docker CLI ships with it, so you already have what you need.

Don’t have it yet? Grab Docker Desktop from the official Docker website.

Installing Docker Scout on a server#

To deploy Docker Scout on a server, run this:

Terminal window
curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s --

Manual installation#

Download the docker-scout binary for your platform from the latest or other releases.

  • Uncompress Docker Scout as:
    • docker-scout on Linux and macOS
    • docker-scout.exe on Windows
  • Copy Docker Scout in your local CLI plugin directory:
    • $HOME/.docker/cli-plugins on Linux and macOS
    • %USERPROFILE%\.docker\cli-plugins on Windows
  • Make Docker Scout executable on Linux and macOS:
    • chmod +x $HOME/.docker/cli-plugins/docker-scout
  • Authorize the binary to be executable on macOS:
    • xattr -d com.apple.quarantine $HOME/.docker/cli-plugins/docker-scout

Mastering Docker Scout via Docker Desktop GUI#

Run the latest Docker Desktop. Then open the “Images” section in the menu.

NOTE

In this guide, we will conduct a thorough examination of the security vulnerabilities associated with the Mattermost image.

Want the full setup for that image? I walk through it in Installing Mattermost with Docker Compose.

The “Local” tab lists every image on your system. Nothing there? Pull one with the docker pull command.

Now click the image you want to check.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 1

The “Vulnerabilities” tab gives you a report on every security issue in the image.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 2

Next, click “Recommended fixes” and pick “Recommendations for base image” to see what Scout suggests.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 3

Here, refreshing the base image is one option.

Check the “Refresh base image” tab for those recommendations.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 4

Or swap the base image entirely.

Check the “Change base image” tab for that.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 5

Mastering Docker Scout via CLI#

Now the CLI. A few commands carry most of the weight:

docker scout quickview: This command provides a succinct summary of an image, enabling you to get a quick understanding of its main features.

docker scout cves: This command reveals the Common Vulnerabilities and Exposures (CVEs) detected for any software artifacts found within an image, keeping you informed about potential security risks.

docker scout recommendations: With this command, you’ll receive a list of all possible base image updates and remediation suggestions, guiding you on how to improve your container security and efficiency.

docker scout compare: This command allows you to compare two distinct images, highlighting their differences. This feature is particularly useful when you’re tracking changes or considering updates.

Learn these four and you cover most of the day-to-day work.

NOTE

This guide walks you through connecting to a server with the iTerm2 terminal emulator on macOS.

We will conduct a thorough examination of the security vulnerabilities associated with the Mattermost image.

Need the install steps first? See Installing Mattermost with Docker Compose.

Start with a quick summary of the image:

Terminal window
docker scout quickview mattermost/mattermost-team-edition:release-7.11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 6

Next, pull the CVEs found across the artifacts in the image:

Terminal window
docker scout cves mattermost/mattermost-team-edition:release-7.11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 7

Now list the base image updates and remediation suggestions:

Terminal window
docker scout recommendations mattermost/mattermost-team-edition:release-7.11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 8

Scroll up for the rest.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 9

Now compare two images and see what differs. Here, two Mattermost releases.

Terminal window
docker scout compare --to mattermost/mattermost-team-edition:release-7.11 mattermost/mattermost-team-edition:release-7.10

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 10

Scroll up for the rest.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 12

Mastering Docker Scout via CLI in the container#

You don’t always need the plugin installed. You can run Scout straight from a container.

NOTE

This guide walks you through connecting to a server with the iTerm2 terminal emulator on macOS.

We will conduct a thorough examination of the security vulnerabilities associated with the Mattermost image.

Same as before, the install guide is here: Installing Mattermost with Docker Compose.

Start with the quick summary:

Terminal window
docker run -it \
-e DOCKER_SCOUT_HUB_USER=YOUR_DOCKER_HUB_USER_NAME \
-e DOCKER_SCOUT_HUB_PASSWORD=YOUR_DOCKER_HUB_PASSWORD_OR_ACCESS_TOKEN \
docker/scout-cli quickview mattermost/mattermost-team-edition:release-7.11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 13

Then the CVEs found across the artifacts in the image:

Terminal window
docker run -it \
-e DOCKER_SCOUT_HUB_USER=YOUR_DOCKER_HUB_USER_NAME \
-e DOCKER_SCOUT_HUB_PASSWORD=YOUR_DOCKER_HUB_PASSWORD_OR_ACCESS_TOKEN \
docker/scout-cli cves mattermost/mattermost-team-edition:release-7.11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 14

Now the base image updates and remediation suggestions:

Terminal window
docker run -it \
-e DOCKER_SCOUT_HUB_USER=YOUR_DOCKER_HUB_USER_NAME \
-e DOCKER_SCOUT_HUB_PASSWORD=YOUR_DOCKER_HUB_PASSWORD_OR_ACCESS_TOKEN \
docker/scout-cli recommendations mattermost/mattermost-team-edition:release-7.11

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 15

And compare two releases, same as before:

Terminal window
docker run -it \
-e DOCKER_SCOUT_HUB_USER=YOUR_DOCKER_HUB_USER_NAME \
-e DOCKER_SCOUT_HUB_PASSWORD=YOUR_DOCKER_HUB_PASSWORD_OR_ACCESS_TOKEN \
docker/scout-cli compare \
--to mattermost/mattermost-team-edition:release-7.11 \
mattermost/mattermost-team-edition:release-7.10

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 16

Scroll up for the rest.

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 17

Mastering Docker Scout through Docker Desktop GUI and CLI - Step 18

Conclusion#

That’s the walkthrough. Docker Scout from the Desktop GUI and from the CLI, both. Container security should sit near the top of your list, and Scout earns a spot in the workflow fast. Wire it in. You get fewer surprises in your images, and a base you can actually trust.


Vladimir Mikhalev

Docker Captain  ·  CNCF Ambassador  ·  IBM Champion

The Verdict — production-tested analysis on YouTube.

The Verdict

Inconvenient truths about shipping in the AI era

Container security, platform engineering, and the agentic shift — tested in production, argued without the hype. The verdict reaches your inbox the moment there's one worth sending.

Related Posts

Same category
  1. 1
    Restore Drills on a Clean Machine — Measured RTO for 47 Stacks, 19 Seconds to 7 Minutes
    DevOps & Cloud · Restore drills that measure RTO on a machine that never ran the stack, 47 templates weekly. Every same-host restore passed. The first clean one answered 500.
  2. 2
    Mutation Testing for Infrastructure Code — 153 Planted Bugs, Four Tests That Could Not Fail
    DevOps & Cloud · Mutation testing for infrastructure code, done by hand across fifteen repositories. 153 planted bugs, and four green tests that could never have failed.
  3. 3
    Docker Health Checks That Cannot Fail — Seventeen Hours Green
    DevOps & Cloud · A Docker health check whose pattern matches the shell running it can never go red. How to find the checks in your fleet that never failed, and prove each one.
  4. 4
    Terraform MCP server GA: the Apply Gate your auditor will ask about
    DevOps & Cloud · HashiCorp's Terraform MCP server is GA and IBM Bob can write production IaC. ENABLE_TF_OPERATIONS separates a safe assistant from autonomous apply.

Random Posts

Random
  1. 1
    Install Lync Server 2010
    SysAdmin & IT Pro · Learn how to install Lync Server 2010 step-by-step on Windows Server 2008 R2. Set up unified communications without failover, including DNS and certificates.
  2. 2
    Install AWS CLI on macOS
    DevOps & Cloud · Step-by-step guide to install AWS CLI on macOS using the terminal. Learn how to download, install, and verify AWS CLI in minutes for seamless cloud management.
  3. 3
    Restore Drills on a Clean Machine — Measured RTO for 47 Stacks, 19 Seconds to 7 Minutes
    DevOps & Cloud · Restore drills that measure RTO on a machine that never ran the stack, 47 templates weekly. Every same-host restore passed. The first clean one answered 500.
  4. 4
    Install Exchange Server 2019 on Windows Server 2019
    SysAdmin & IT Pro · Step-by-step guide to install Exchange Server 2019 on Windows Server 2019, including prerequisites, Active Directory setup, and admin tips.
Mastering Docker Scout through Docker Desktop GUI and CLI
https://heyvaldemar.com/mastering-docker-scout-through-docker-desktop-gui-and-cli/
Author
Vladimir Mikhalev
Published
2023-07-16
Updated
2026-06-16
License
CC BY-NC-SA 4.0