Skip to content

running command based on docker output #2049

Answered by itzg
Ahptt asked this question in Q&A
Discussion options

You must be logged in to vote

Good question. I would suggest building a separate image to run as a sidecar where you could pull in the mc-monitor binary from https://github.com/itzg/mc-monitor/releases/latest

With that, have your entrypoint be a script of some form that runs in a loop checking the status and taking actions needed.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Ahptt
Comment options

@itzg
Comment options

itzg Mar 31, 2023
Maintainer

Answer selected by Ahptt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants