Setup new path for save logs and backup with Docker

Hi everybody,
I have an Dockersetup on my Raspberry Pi 4 but I have an Storage issue, my sd card is to small, but I have an SSD plugged in, is there any solution to move the files (logs,configs…) to the ssd so it will in future load vom SSD?

I hope it is not a duplicate question so I am Sorry

greetings
Simon

You can bind-mount any host path to the container’s /config directory, so yes - should be possible.

But - the majority of data is not in HA’s config directory or beneath. It’s somewhere in /var, especially /var/lib, where docker keeps volumes and images.

I recommend to do sudo docker system prune regularly.

yeah I should switch the Docker temp to an external filesystem.