With Docker, if you write to a path that’s not mounted, the file will be located within the Docker container. If you run sudo docker exec -it homeassistant ls /media (or sudo docker exec -it homeassistant /bin/sh then ls /media), you’ll see them. On a default Docker installation on Debian using overlay2 (which is the default unless you explicitly change it to use something fancy like ZFS), they’ll be somewhere in /var/lib/docker/overlay2/.
Note that storing files within the container itself is a bad practice. They’re expected to be ephemeral, and things like docker compose down and upgrading the Docker image will remove the entire container, including any files within it.
Two years later and I’m trying to figure this out… I don’t understand the use of the new Media section if all media is root.
I’ve created ‘/config/media’ and added the following to my config file…
media_dirs:
local: /config/media
I’ve tried ‘/media/local/fam.png’ as path.
In checking paths via ‘ls’ in Terminal, my pics added to ‘Media/My media’ folder still show on root. If I’m not to use the Media section to link pictures to from within the Frontend (Dashboard card), do I need to manually upload them? So confusing.
Sooooooo painful. Talk about putting all your geekery into question, this took me a long time to get right. HAdevs need to spend less time making nice thermostat cards. and spend more time on this.
Anyway, just wanted to say thanks. This worked for me. HAcore running on a HABlue Odroid. iOS notifications with image attachments - check.
i think that’s everything i have in my config that’s relevant.
also, @shony28 , welcome to the community… folks are definitely here to help each other. your issue here is related but not the same as the original post. in those cases, you should start a new thread. that lets the original thread stay clean, and to your benefit your post gets marked as “new” and can help get a resonse faster.