Media disappears after a reboot

I have some audio files that I manually located in the home_assistant_config/media folder but when I go to select media for the action there is nothing listed in My Media. I have to use the manage button to add the files and then they work but only until the next reboot, and then the files are no longer found.

root@dave-desktop:~/home_assistant_config# ls
automations.yaml  blueprints          configuration.yaml.save  home-assistant.log    home-assistant.log.fault  home-assistant_v2.db-shm  image  scenes.yaml   secrets.yaml  zigbee.db
backups           configuration.yaml  deps                     home-assistant.log.1  home-assistant_v2.db      home-assistant_v2.db-wal  media  scripts.yaml  tts
root@dave-desktop:~/home_assistant_config# ls media/
'dog-barking(LOUD2).mp3'  'la-cucaracha-car-horn-(2).mp3'   vintage-doorbell.mp3

As you can see, the files are there in media.

I am running HA under docker and this is the run command line

docker run -d --network=host --restart=always --name homeassistant -v /root/home_assistant_config:/config homeassistant/home-assistant

What am I missing here?

You’re not mounting the media folder in your docker command. So when you turn the container off, poof.

1 Like

The docker command look correct and should be mounting your local folder and all subfolders into config.

Try starting it via docker, The shell into the running home assistant container using docker exec -it homeassistant /bin/bash (that’s from memory so check the syntax :-).

Once in check to see if the media files are there. If they aren’t then it’s likely a permission issue, if they are then HA isn’t recognizing them.