GithubHelp home page GithubHelp logo

Comments (8)

vladgh avatar vladgh commented on June 28, 2024

Please share the log output from the container.

from docker_base_images.

Hadatko avatar Hadatko commented on June 28, 2024

Actually i tried reboot container and it is unhealty also without the warning above:
image

And failure count is increasing

from docker_base_images.

Hadatko avatar Hadatko commented on June 28, 2024

I see that you are running healtcheck on different port than it is defined in minidlna enviroment variable.
curl --silent --fail 127.0.0.1:8200 || exit 1

IS this the reason for it?

from docker_base_images.

vladgh avatar vladgh commented on June 28, 2024

Yes, that must be it. But that's not something I can modify at build time, in the image. You must override the health check at runtime, in Portainer or docker-compose, or whatever you use.

from docker_base_images.

Hadatko avatar Hadatko commented on June 28, 2024

You cannot set Healtcheck to something like this? Just thinking if we can solve it easily ;)

HEALTHCHECK --interval=10s --timeout=10s --retries=6 CMD \
  sh -c 'test -n "$MINIDLNA_PORT" || MINIDLNA_PORT=8200; \
  curl --silent --fail "http://127.0.0.1:$MINIDLNA_PORT" || exit 1'

from docker_base_images.

Hadatko avatar Hadatko commented on June 28, 2024

I see this in image:
image
But this in container using newer image:
image

I will try changes locally and see

from docker_base_images.

vladgh avatar vladgh commented on June 28, 2024

It should work as expected:

Screenshot 2023-08-09 at 9 46 19 AM
Screenshot 2023-08-09 at 9 46 45 AM
Screenshot 2023-08-09 at 9 46 30 AM

from docker_base_images.

Hadatko avatar Hadatko commented on June 28, 2024

Hi finally it is working. Not sure where was the issue, but minidlna is now using correct Healthcheck updated command (maybe i had to recreate minidlna, or do update on stack context and not container context...)

Tahnk you for helping and solving the issue ;)

image

from docker_base_images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.