anchorectl stig

STIG related operations.

Every command on this page also accepts the global flags.

Subcommands

stig docker

Docker related STIG operations.

anchorectl stig docker [command]

Subcommands

stig docker image

Docker image related STIG operations.

anchorectl stig docker image [command]

Subcommands

stig docker image add

Add a STIG evaluation for an image.

anchorectl stig docker image add IMAGE STIG_EVALUATION_FILE [flags]

Arguments

ArgumentDescription
IMAGEThe image ID, name:tag, name@sha256:digest, name:tag@sha256:digest, or sha256:digest value.
STIG_EVALUATION_FILEThe path and filename for the STIG evaluation file.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.
--stig-evaluation-uuidstringANCHORECTL_STIG_EVALUATION_UUID""NoThe UUID for the STIG evaluation to overwrite, if the image already has a STIG evaluation for the same profile this must be provided to upload the new evaluation.

stig docker image delete

Delete a STIG evaluation for an image.

anchorectl stig docker image delete IMAGE EVALUATION_UUID [flags]

Aliases: del

Arguments

ArgumentDescription
EVALUATION_UUIDThe UUID of the STIG evaluation.
IMAGEThe image ID, name:tag, name@sha256:digest, name:tag@sha256:digest, or sha256:digest value.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

stig docker image download

Download a STIG evaluation for an image.

anchorectl stig docker image download IMAGE EVALUATION_UUID [flags]

Arguments

ArgumentDescription
EVALUATION_UUIDThe UUID of the STIG evaluation.
IMAGEThe image ID, name:tag, name@sha256:digest, name:tag@sha256:digest, or sha256:digest value.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
--stig-output-dirstringANCHORECTL_STIG_OUTPUT_DIR""NoDirectory to save the STIG evaluation.

stig docker image execute

Perform a STIG evaluation generation for an image.

anchorectl stig docker image execute IMAGE [flags]

Arguments

ArgumentDescription
IMAGEFully qualified image reference in format [registry/]repository/image:tag@digest.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-p, --stig-profilestringANCHORECTL_STIG_PROFILE""YesPath to the Inspec STIG profile, can be a folder containing the extracted profile or an archive e.g. .tar.gz (required).
--platformstringANCHORECTL_PLATFORM""NoAn optional platform specifier used when pulling the image into the docker daemon (e.g. linux/arm64, linux/amd64). Set this when the daemon cannot select an entry from a multi-arch image index on its own (optional).
--stig-container-manual-overridestringANCHORECTL_STIG_CONTAINER_MANUAL_OVERRIDE""NoDocker container ID to use as the STIG target (skips creating container with anchore-keep-alive binary).
-i, --stig-input-filestring (repeatable)ANCHORECTL_STIG_INPUT_FILE[]NoPath to input file to use for STIG generation. The input file can optionally provide variable inputs to the STIG profile that can change the execution of specific controls (optional).
--stig-output-dirstringANCHORECTL_STIG_OUTPUT_DIR""NoPath to save the STIG evaluation (optional).
--stig-skip-uploadboolANCHORECTL_STIG_SKIP_UPLOADfalseNoSkip uploading the STIG evaluation to Anchore (optional).
--stig-tools-binary-pathstringANCHORECTL_STIG_TOOLS_BINARY_PATH""NoPath to the statically-linked busybox binary inside the tools image (default: /bin/busybox).
--stig-tools-imagestringANCHORECTL_STIG_TOOLS_IMAGE""NoContainer image containing a statically-linked busybox binary for shell-less image support (e.g. docker.io/library/busybox:musl). The binary must be statically linked to work in distroless containers.
--stig-waiver-filestring (repeatable)ANCHORECTL_STIG_WAIVER_FILE[]NoPath to waiver file to use for STIG generation. The waiver file can waive controls and dictate the running and/or reporting of those controls (optional).

stig docker image list

List the STIG evaluation metadata for an image.

anchorectl stig docker image list IMAGE [flags]

Arguments

ArgumentDescription
IMAGEThe image ID, name:tag, name@sha256:digest, name:tag@sha256:digest, or sha256:digest value.

Flags

FlagTypeEnvironment variableDefaultRequiredDescription
-o, --outputstringANCHORECTL_FORMATtextNoThe format to show the results. Allowable values: text, json, json-raw, id. See Output Formats.

stig write-profiles

Write Anchore STIG profiles to disk.

anchorectl stig write-profiles PATH [flags]

Arguments

ArgumentDescription
PATHPath to write the profiles to.
Last modified September 22, 2026