JUNE 10, 2022
For a Docker container started with the docker run command to be removed when it exits, you need to use the --rm flag.
docker run
--rm
docker run -it --rm ubuntu /bin/bash
BlogCodeDocker