Is there something like docker cloud "autodestroy" for Docker Swarm?

109 views Asked by At

I am looking for a way to destroy a single shot container after exiting with success (0).

The docker cloud has an option called "autodestroy". Is there anything like that for Docker Swarm?

Update

I would like to autoremove a successfully exited container in a Docker Swarm by adding "special information" to the compose file.

1

There are 1 answers

0
Bret Fisher On BEST ANSWER

Sorry, but no, that feature does not exist. If you were more descriptive about what you're looking to do, we might provide a better answer :)