ZM with Docker : Change Video Storage Volume
Posted: Sun Aug 11, 2019 9:48 pm
Hello.
I am sorry if this has been asked repeatedly, but I cannot find anything posted in the forums.
What I have is:
ZoneMinder 1.32.3
which resides in a Docker container for Version 19.03.1, build 74b1e89
All of this running on a CentOS Linux release 7.6.1810 box
(I don't think that motherboard or CPU enter into this.
I have Zoneminder installed on a single drive and the Docker install set everything up nicely (yeah zm community!)
It is my understanding that there is a Docker Volume for /var/cache/zoneminder (the default location, Lots of GUID characters in the actual file name.
What I want to do is to redirect the Docker Volume so that I can store all of the camera data/event data/etc. to a separate directory. Actually, I have a completely different, physical, 4TB HDD that I want to use for data storage.
The Docker UI (Portainer actually) gives no option to redirect the Docker Volume to another drive or directory.
Attempting to fool it with a hard or soft link failed.
Is there a way to change where the volume used by docker. Thus redirecting camera and logging to the new drive and directory?
I would prefer to keep Zoneminder and docker on 1 drive and just data on the other.
[BTW I am a programmer by trade, so you can speak geek to me. I am, however, a real newbie with both Docker and Zoneminder.]
Thank you.
I am sorry if this has been asked repeatedly, but I cannot find anything posted in the forums.
What I have is:
ZoneMinder 1.32.3
which resides in a Docker container for Version 19.03.1, build 74b1e89
All of this running on a CentOS Linux release 7.6.1810 box
(I don't think that motherboard or CPU enter into this.
I have Zoneminder installed on a single drive and the Docker install set everything up nicely (yeah zm community!)
It is my understanding that there is a Docker Volume for /var/cache/zoneminder (the default location, Lots of GUID characters in the actual file name.
What I want to do is to redirect the Docker Volume so that I can store all of the camera data/event data/etc. to a separate directory. Actually, I have a completely different, physical, 4TB HDD that I want to use for data storage.
The Docker UI (Portainer actually) gives no option to redirect the Docker Volume to another drive or directory.
Attempting to fool it with a hard or soft link failed.
Is there a way to change where the volume used by docker. Thus redirecting camera and logging to the new drive and directory?
I would prefer to keep Zoneminder and docker on 1 drive and just data on the other.
[BTW I am a programmer by trade, so you can speak geek to me. I am, however, a real newbie with both Docker and Zoneminder.]
Thank you.