Install Process Question

I’m pretty new to Home Assistant, Raspi, Docker, everything basically. I currently have Home Assistant OS running on a Raspberry Pi 4. The Raspi is in a case and Home Assistant OS is running on a SATA SSD that is mounted in the case. I want to move to Home Assistant in a docker container, but I do not want to disassemble the Raspi from the case. Is there a way to wipe the SSD and install HA via docker on that SSD either directly to the SSD or via SD card?

I should add that I only have a MacBook and do not have monitor/keyboard/mouse so I’m going to have to do this to the Raspi “headless”.

Thanks in advance for any help you can provide.