Nono.MA

Delete a Docker container on exit

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 -it --rm ubuntu /bin/bash

BlogCodeDocker