docker run --rm <image>
Meaning: Automatically removes the container when it exits.
Usage: Useful for temporary containers that you don’t want to keep after they stop.
Example: docker run --rm ubuntu echo "Hello World"
removes the container after it prints "Hello World".