[go: up one dir, main page]

{ const container = $el; // The div with overflow const item = document.getElementById('sidebar-current-page') if (item) { const containerTop = container.scrollTop; const containerBottom = containerTop + container.clientHeight; const itemTop = item.offsetTop - container.offsetTop; const itemBottom = itemTop + item.offsetHeight; // Scroll only if the item is out of view if (itemBottom > containerBottom - 200) { container.scrollTop = itemTop - (container.clientHeight / 2 - item.offsetHeight / 2); } } })" class="bg-background-toc dark:bg-background-toc fixed top-0 z-40 hidden h-screen w-full flex-none overflow-x-hidden overflow-y-auto md:sticky md:top-16 md:z-auto md:block md:h-[calc(100vh-64px)] md:w-[320px]" :class="{ 'hidden': ! $store.showSidebar }">
Contact support

Configure Docker Scout with environment variables

Table of contents

The following environment variables are available to configure the Docker Scout CLI commands, and the corresponding docker/scout-cli container image:

NameFormatDescription
DOCKER_SCOUT_CACHE_FORMATStringFormat of the local image cache; can be oci or tar (default: oci)
DOCKER_SCOUT_CACHE_DIRStringDirectory where the local SBOM cache is stored (default: $HOME/.docker/scout)
DOCKER_SCOUT_NO_CACHEBooleanWhen set to true, disables the use of local SBOM cache
DOCKER_SCOUT_OFFLINEBooleanUse offline mode when indexing SBOM
DOCKER_SCOUT_REGISTRY_TOKENStringToken for authenticating to a registry when pulling images
DOCKER_SCOUT_REGISTRY_USERStringUsername for authenticating to a registry when pulling images
DOCKER_SCOUT_REGISTRY_PASSWORDStringPassword or personal access token for authenticating to a registry when pulling images
DOCKER_SCOUT_HUB_USERStringDocker Hub username for authenticating to the Docker Scout backend
DOCKER_SCOUT_HUB_PASSWORDStringDocker Hub password or personal access token for authenticating to the Docker Scout backend
DOCKER_SCOUT_NEW_VERSION_WARNBooleanWarn about new versions of the Docker Scout CLI
DOCKER_SCOUT_EXPERIMENTAL_WARNBooleanWarn about experimental features
DOCKER_SCOUT_EXPERIMENTAL_POLICY_OUTPUTBooleanDisable experimental output for policy evaluation

Offline mode

Under normal operation, Docker Scout cross-references external systems, such as npm, NuGet, or proxy.golang.org, to retrieve additional information about packages found in your image.

When DOCKER_SCOUT_OFFLINE is set to true, Docker Scout image analysis runs in offline mode. Offline mode means Docker Scout doesn't make outbound requests to external systems.

To use offline mode:

$ export DOCKER_SCOUT_OFFLINE=true