In this tutorial ,we are going to use "Docker: Enterprise Container Platform" (docker.io) on Ubuntu 19.10.
First
Installation of Docker on Ubuntu 19.10
On the Ubuntu terminal
Code:
sudo apt install docker.io
Then use , bkjaya1952/docker-zoneminder-master-mysql8 Docker Repository to make a container .
(https://pix.cobrasoft.org/images/2023/11/27/screenshot-from-2020-01-14-23-43-41.webp)
Figure:- bkjaya1952/docker-zoneminder-master-mysql8:1.33.16 Repository at dockerhub
Code:
sudo docker create -t -p 8080:80 --shm-size=4096m --name zm --privileged=true bkjaya1952/docker-zoneminder-master-mysql8:latest
sudo docker start zm
You will have to configure the running zm container for mysql 8 ,zm data base and edit the timezone only for the first run .
Code:
sudo docker exec -t -i zm /bin/bash
(Now you will be with in the zm container.
Make changes as follows)
Code:
mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
mysql
CREATE USER 'zmuser'@localhost IDENTIFIED WITH mysql_native_password BY 'zmpass';
GRANT ALL PRIVILEGES ON zm.* TO 'zmuser'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES ;
quit
mysqladmin -uroot -p reload
Code:
dpkg-reconfigure tzdata
Then edit your timezone
Code:
exit
Code:
sudo docker restart zm
To get zoneminder panel on web browser