snow custom-image validate¶
Validates a Docker image against Snowflake custom image requirements.
Syntax¶
Arguments¶
imageLocal Docker image to validate. Accepts image name (e.g., ‘myimage:latest’) or image ID/hash.
Options¶
--scan-vulnerabilitiesRun vulnerability scan using Grype. Requires Grype to be installed. Default: False.
--format [TABLE|JSON|JSON_EXT|CSV]Specifies the output format. Default: TABLE.
--verbose, -vDisplays log entries for log levels
infoand higher. Default: False.--debugDisplays log entries for log levels
debugand higher; debug logs contain additional information. Default: False.--silentTurns off intermediate output to console. Default: False.
--enhanced-exit-codesDifferentiate exit error codes based on failure type. Default: False.
--decimal-precision INTEGERNumber of decimal places to display for decimal values. Uses Python’s default precision if not specified. [env var: SNOWFLAKE_DECIMAL_PRECISION].
--helpDisplays the help text for this command.
Usage notes¶
The snow custom-image validate command validates a custom Docker image against the configured rules before you register it for use with Snowflake container services. The command checks the entrypoint configuration, required environment variables, installed Python packages, and dependency health.
Pass the --scan-vulnerabilities flag to run Grype vulnerability scanning against the image as part of validation.
Examples¶
-
Validate a local Docker image:
-
Validate a local Docker image and scan it for vulnerabilities: