O'Reilly logo
  • Jozef Reisinger thinks this is interesting:

docker run --rm runs a container and removes it automatically when it exits, but this works only for containers that are not daemonized with -

From

Cover of UNIX and Linux System Administration Handbook, 5th Edition

Note

not true, works even for -d but the container has to exit