docker pull sosnus/pinger
A simple application for sending a query to a web application at intervals
https://hub.docker.com/r/sosnus/pinger
Important
Repo and image was moved from sosnus15/pinger to sosnus/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 sosnus/pingerif 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 sosnus/pingerif 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 sosnus/pingerVTIME- delay in seconds, for example5VNAME- name of this service (used in logs) for exampleGOOGLE.COMVURL- ping url, for examplegoogle.comorhttp://google.com
- 1 time retry ping (if!)
- build on different architectures
- add timeout 40s
- try again if problem with curl
- switch to alpine or sth
- rewrite to busybox?
- curl to wget?
- add default params