docker pull sosnus15/pinger
A simple application for sending a query to a web application at intervals
https://hub.docker.com/r/sosnus15/pinger
see run.sh
file from this repository
see docker-compose.yaml
file from this repository
sudo docker run --rm -e VTIME=5 -e VNAME=GOOGLE.COM -e VURL=google.com --name pinger_container sosnus15/pinger
if You have problem, use '
, for example:
sudo docker run --rm -e VTIME=5 -e VNAME=GOOGLE.COM -e VURL='https://www.google.com/' --name pinger_container sosnus15/pinger
if You want run container in background, and use permanently with system autostart, use:
sudo docker run -d --restart unless-stopped -e VTIME=5 -e VURL='https://www.google.com/' -e VURL=google.com --name pinger_container sosnus15/pinger
VTIME
- delay in seconds, for example5
VNAME
- name of this service (used in logs) for exampleGOOGLE.COM
VURL
- ping url, for examplegoogle.com
orhttp://google.com
- try again if problem with curl
- switch to alpine or sth