D

Dockerfile Missing USER Instruction Companion

JetBrains

gap-hunter-labs · v—

Warning when a Dockerfile's FINAL build stage never sets a non-root USER -- Docker runs a container as root by default when USER is absent, a real risk documented explicitly by Docker's own guide for the instruction (container escape/privilege escalation if a volume mount is misconfigured). Reasons over real multi-stage structure -- a USER instruction in an EARLIER stage never counts o

Security
Open in store ↗ id: 34003
Downloads
75
75
Rating
— ★
— ratings
Category
JetBrains Marketplace
Collected
2026-11-04
weekly snapshot

Similar in “Security”