Use the '--rm' option, so that it removes itself after each execution. It is also advisable to add ExecStartPre statements to 'kill' and 'rm' the container before each execution. Historically, Docker has not always been successful at honoring the '--rm' option.
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sorry, I presumed you were referring to the systemd restart option, not the Docker restart option. My opinion is to always have the process controller handle restarts.