nerdctl container run adds --expose and --publish-all
Introduced 2026-09-20 · score 0.92
HOW TO USE IT
When running a container, use `--expose` to declare ports or `--publish-all` (`-P`) to publish exposed ports. The v2.4.0 release note confirms both flags were added; the v2.4.0 command reference does not document their syntax or behavior.
WHY THIS HELPS
Configure exposed or automatically published container ports when running a container.
REQUIREMENTS AND LIMITATIONS
- Version: v2.4.0
- Prerequisite: nerdctl v2.4.0 release expects containerd v1.7 or later; some features may not work with other releases.
FIRST-PARTY EVIDENCE
Check the installed version and the source before using it. Entry JSON