Docker is a software system for creating and running containers. There is an alternative that can work rootless called Podman.
docker system prune -a
docker run -it \
-p 70:70 \
-d \
$(docker build -q .)
You can prevent this by writing SystemD service files that restarts your containers when they die. In this scenario, SystemD acts as a watchdog. You can also observe the container states and logs via SystemD if you do this.