It is possible to create a docker container that exists and deletes itself after a specific amount of time?
for example, if I have an app that I run using:
docker run -d \
--name=my_name\
-p 3800:3800 \
-v /docker/appdata/folder:/folder:rw \
-v $HOME:/storage:rw \
image/here
I normally do docker ps, find container id, stop it manually then rm it, is it possible to replace the manual part, by setting a 1 hour expiry for each container to self-destruct 1 hour after the run command?
Thanks in advance