Pi.Alert Setup with Docker on Ubuntu
- Ali ÇOLAK
- 18 Oca 2024
- 2 dakikada okunur
Hi again :)
It's been a while that i've tried to improve myself on my job. Besides that some changes have occured in my life of course. With the new year no doubt! So lets get to it right?
Pi.Alert is the main thing in here. I assume that you have an ESXi server and installed an Ubuntu distro for the base like this:

After that you have to install docker with commands. Get a terminal and please follow these commands with order:
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpgIf everything goes well with these commands that located up on this, please continue with these also:
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get updateAnd for the real installing step you need to run this one also:
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginFor confirm that everything is well please test this command:
sudo docker run hello-worldIf everything is correct this command should run a basic container and pops up with a message and exit.
So, we got the distro, updated it and installed successfully the docker. Now its time to run the Pi.Alert with docker. You can easily download the Pi.Alert from here .

Extract the zip file to your location. Get in to the "dockerfiles" file. Open a terminal in here. Run "sudo su" command and after that please run this one also:
docker run -d --rm --network=host \-v /home/pi/pialert/config \-v /home/pi/pialert/db \-e TZ=Europe/Berlin \-e PORT=20211 \jokobsk/pi.alert:latestWait a bit, if everything goes well docker must show you the long container id such as like this: "9xyz897zyzx..............". You can confirm that your container works with "docker ps" command. This will give you a reply like this:

Which means Pi.Alert is working in a container with docker right now! You can reach web interface with "localhost:20211" adress. Or any device in the same network with the machine ip, for example: "10.71.23.41:20211".
For complete scan from the web interface click "Settings" find "Device Scanners" and add your subnet here like this:

Be careful with your subnet and connection interface. If you can't find your network devices with Pi.Alert you must made a mistake with your subnet or connection interface. Anyway, i assume that everything is okay. You know have to wait couple minutes for Pi.Alert settle up and scan your network. The rest is related your abilities and needs. Hope this article helps. Have a nice one folks.

Yorumlar