I am running Docker Desktop on WSL2 and not Ubuntu. Here is the command I use to create the container. The --restart=always may work for you.
docker run --restart=always -e MODE=High -e VISION-DETECTION=True -v localstorage:/datastore -p 8092:5000 --name deepstack3 deepquestai/deepstack:cpu-2020.12