Docker Scout のインストール
Docker Scout の CLI プラグインは Docker Desktop 内にプリインストールされています。.
Docker Desktop を用いずに Docker Engine を実行している場合、Docker Scout はプリインストールされていません。 その場合はスタンドアロンバイナリーとしてインストールします。
Installation script
最新バージョンのプラグインをインストールするには、以下のコマンドを実行します。
$ curl -fsSL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh -o install-scout.sh
$ sh install-scout.sh
メモインターネットからローカルにダウンロードしたスクリプトは、実行前に充分に内容を確認してください。 インストールするにあたっては、この便利スクリプトが抱える潜在的リスクや制約について充分に理解しておいてください。
Manual installation
Download the latest release from the releases page.
Create a subdirectory under
$HOME/.dockercalledscout.$ mkdir -p $HOME/.docker/scoutExtract the archive and move the
docker-scoutbinary to the$HOME/.docker/scoutdirectory.Make the binary executable:
chmod +x $HOME/.docker/scout/docker-scout.Add the
scoutsubdirectory to your.docker/config.jsonas a plugin directory:{ "cliPluginsExtraDirs": [ "/home/<USER>/.docker/scout" ] }Substitute
<USER>with your username on the system.メモThe path for
cliPluginsExtraDirsmust be an absolute path.
Download the latest release from the releases page.
Create a subdirectory under
$HOME/.dockercalledscout.$ mkdir -p $HOME/.docker/scoutExtract the archive and move the
docker-scoutbinary to the$HOME/.docker/scoutdirectory.Make the binary executable:
$ chmod +x $HOME/.docker/scout/docker-scoutAuthorize the binary to be executable on macOS:
xattr -d com.apple.quarantine $HOME/.docker/scout/docker-scoutAdd the
scoutsubdirectory to your.docker/config.jsonas a plugin directory:{ "cliPluginsExtraDirs": [ "/Users/<USER>/.docker/scout" ] }Substitute
<USER>with your username on the system.メモThe path for
cliPluginsExtraDirsmust be an absolute path.
Download the latest release from the releases page.
Create a subdirectory under
%USERPROFILE%/.dockercalledscout.% mkdir %USERPROFILE%\.docker\scoutExtract the archive and move the
docker-scout.exebinary to the%USERPROFILE%\.docker\scoutdirectory.Add the
scoutsubdirectory to your.docker\config.jsonas a plugin directory:{ "cliPluginsExtraDirs": [ "C:\Users\<USER>\.docker\scout" ] }Substitute
<USER>with your username on the system.メモThe path for
cliPluginsExtraDirsmust be an absolute path.
Container image
The Docker Scout CLI plugin is also available as a container image.
Use the docker/scout-cli to run docker scout commands without installing the CLI plugin on your host.
$ docker run -it \
-e DOCKER_SCOUT_HUB_USER=<your Docker Hub user name> \
-e DOCKER_SCOUT_HUB_PASSWORD=<your Docker Hub PAT> \
docker/scout-cli <command>
GitHub Action
The Docker Scout CLI plugin is also available as a GitHub action. You can use it in your GitHub workflows to automatically analyze images and evaluate policy compliance with each push.
Docker Scout also integrates with many more CI/CD tools, such as Jenkins, GitLab, and Azure DevOps. Learn more about the integrations available for Docker Scout.