Loosing my volume on update

Hello people
I have a question, which is probably more related to Dockers. I am running HomeAssistant in the usual Docker container. To view the free space on my USB hard drive, I mount the /mnt/dh directory from the host into the container. Now I got the problem that every time I update I have to do that again. Is there any way to automate this?

Greetings
Gabriel

You could put your docker run command with the needed --volume / -v to a shell script and run that when updating.
Alternatively, you might want to look into docker-compose.

1 Like

The docker-composer was the solution I was looking for. Thanks a lot :slight_smile: