Hello all,
I've recently purchased a Raspberry Pi 4 running Raspberry Pi OS lite (32bit) and I managed to get it to boot from an external SSD drive. It is really fast and the performance is good. I installed Docker and I'm running 18 containers which run absolutely fine. If I reboot the device reboots successfully and I can SSH into it etc after reboot. However, if I shutdown (shutdown -h now), when I boot it up again, it manages to boot up but it feels like as it starts containers it freezes. I managed to SSH and stop all containers and then ran "systemctl disable docker" and I was able to shutdown and boot up again. I then enabled Docker again and only started 1 container and I was able to get it to boot up again.
How can I diagnose this to identify if it is one specific container that pushes the Pi over the edge causing it to freeze? I tried testing the containers one by one but it seems random so I don't think it's one specific container but perhaps a combination of things.