VPS offline due to auto-restart policy on undetermined docker stack

I have my VPS through racknerd. I have several services that I host via docker. For the most important ones, I have them set to automatically restart when the server reboots. I set it up for convenience but it turned out to be the cause of the only issue I’ve had in recent memory involving my a VPS I’ve rented.

Docker command to stop all running images.

docker stop $(docker ps -q)

Clear the restart policy on all docker stacks.