sajad torkamani
docker container run --rm <image>

This will spin up a container based on <image>, run its default command and then remove the container when the command terminates.

Tagged: Docker