Closed SamyaMaiti2012 closed 4 years ago
i can't run container as well.
starting it by docker run
(with proper command line , like in the README example), makes container exit immediately after start. Logs:
# docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bf5cfc6554df metalmatze/alertmanager-bot "/usr/bin/alertmanag…" About a minute ago Exited (2) About a minute ago alertmanager-bot
$ journalctl -u docker -e
error parsing commandline arguments: path './default.tmpl' does not exist
usage: alertmanager-bot --alertmanager.url=ALERTMANAGER.URL --listen.addr=LISTEN.ADDR --store=STORE --telegram.ad
# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
metalmatze/alertmanager-bot latest ea92091f4ae5 10 months ago 20.6MB
how do i pass default.tmpl to a container on a run ?
Thanks.
PS: Was able to run container from git version of repo. Subscribing for alerts, they does not come to me (as a message), though i see them in /alerts
as firing (as well OK messages does not arrive too).
Was unable to add second bot admin via docker run -e "TELEGRAM_ADMIN=$id1\n$id2" ...
, container failed to start. It would be better to be able to manage admins via /command
interface (like /admins add/rm/list)
The default for the --template.paths
flag was broken at the time of the 0.4.0
release.
It was fixed in https://github.com/metalmatze/alertmanager-bot/pull/76 and I will cut a 0.4.1
release that is going to include this fix.
Sorry about the inconvenience.
Hi All,
After staring the docker container it stops immediately with no logs except below. must be a very basic mistake from my end. but stuck.
Log in Docker container before stoping
Regards, Samya