Jump to content

Docker Container Health Status


TXK57

Recommended Posts

TXK57

I prefer using the official docker container. It doesn't seem to support console though. I've tried root and the user that I have setup.support

I'm trying to add a health check on the server with the below config. However, with no console or curl in container seems to be an issue. Thoughts on having health check within container?

    labels:
      autoheal: "true"
    healthcheck:
      test: curl -fsS http://localhost:8096/emby/system/info/public?format=json >/dev/null || exit 1
      start_period: 30s
      timeout: 10s
      interval: 5s
      retries: 3

 

Edited by TKX57
had double curl when I copied
Link to comment
Share on other sites

Hi, I guess it's always possible, but that sort of thing can lead to hiding problems that would never get solved.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...