docker
Officialv1.0.01 scenarios

Docker

Container image and build risk knowledge covering Dockerfile security patterns, image provenance, multi-stage build risks, compose file analysis, and runtime container security.

deploywhisper skill install docker

Back to catalog

How to use this skill

1. Install it locally

Use the install command above from any DeployWhisper app checkout that has the installer enabled.

2. Run analysis on matching artifacts

This skill activates when files or content patterns below are detected during analysis.

3. Verify behavior

Published registry data currently includes 1 deterministic scenario for this skill.

Metadata

Author

DeployWhisper

Version

1.0.0

License

MIT

Scenarios

1

Tags

dockercontainerssupply-chain

Triggers

Content patterns

Guidance excerpt

Dockerfile risk patterns

Running as root (CRITICAL)

Dangerous instructions (HIGH)

Unpinned dependencies (HIGH)

Layer optimization (LOW-MEDIUM)

Image provenance

Registry trust (HIGH)

Image signing and verification

Multi-stage build risks

Secret leakage between stages (CRITICAL)

Stage dependency issues

Docker Compose analysis

Security risks in Compose (HIGH)

Configuration risks (MEDIUM)

Networking risks

Runtime container security

Volume and data risks

Container lifecycle

Dockerfile change risk assessment

| Change type | Risk level | Rationale |

|---|---|---|

| Base image tag change | HIGH | New OS, new packages, new vulnerabilities, potential breaking changes |

| Base image digest change | MEDIUM | Controlled update, but content changes |

| USER instruction added/changed | HIGH | Affects permission model for all subsequent instructions |

| EXPOSE port change | MEDIUM | May require corresponding K8s service/ingress update |

| COPY/ADD source path change | MEDIUM | Different files included in image |

| RUN with package install | MEDIUM | New dependencies, new attack surface |

| ENV change | LOW-HIGH | Depends on variable (PORT vs SECRET) |

| ENTRYPOINT/CMD change | HIGH | Changes how the container starts; wrong entrypoint = broken container |

| HEALTHCHECK change | MEDIUM | Affects readiness detection in orchestrators |

| .dockerignore change | MEDIUM | Affects what enters the build context |