scout_recommendations
Find recommended base-image upgrades for a Docker image, helping resolve vulnerabilities by refreshing or updating to a newer version. Filter suggestions by tag or platform for targeted results.
Instructions
Suggest base-image upgrades for an image.
Computed against Docker Scout's catalog; generally needs docker login on the host that runs the
CLI (the target ssh:// host itself when no local scout plugin is installed) to return useful
results for private or rarely-scanned base images. The natural follow-up to scout_cves when the
fix is a newer base image.
Output is plain text only: docker scout recommendations has no output-format option, so
result is always the rendered text rather than a parsed document.
Does not raise on a non-zero CLI exit (a missing scout plugin or a timeout still raises) - inspect
raw.stderr.
Args: only_refresh: Only show "refresh" recommendations (same major/minor) only_update: Only show "update" recommendations (newer minor/major) tag: Restrict to suggestions matching this tag pattern platform: Platform of the image to analyze
Returns: dict: {"result": , "raw": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | ||
| image | Yes | ||
| platform | No | ||
| only_update | No | ||
| only_refresh | No |