docker run --rm nginx

Category: Docker

docker run --rm nginx

Run container and auto-remove it when it exits

Runs a container that automatically deletes itself when it stops — no cleanup needed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.