Portainer does not respect '--no-healthcheck' in Command for Node-Red container (but Docker itself does) #5101
Labels
bug/need-confirmation
contributions-welcome
This issue is not one our current roadmap, but we will help anyone that wants to work on it.
kind/bug
Applied to Bugs
Bug description
Portainer does not respect '--no-healthcheck' option when running a Node-Red container. When I execute the following via SSH, the '--no-healthcheck' option works fine, the container gets listed in Portainer and runs without healtcheck (status "running")."
docker run -it -p 1880:1880 --no-healthcheck -v /srv/dev-disk-by-uuid-95f9376f-4b40-4f41-a85b-615712219901/data/nodered:/data --name node-red nodered/node-red
When the same container is stopped and re-started (via Portainer), the no-healthcheck is not respected any more and the container gets status "healthy", which means healtcheck is enabled.
I put '--no-healthcheck' into the field called Command (Override) in section "Command & logging". It does not matter if I create a new container or edit via "Duplicate/Edit".
So, in other words, when running a container via SSH and "docker run..." everything works as expected (healthcheck disabled) but if running the same container (or restarting) in Portainer, healthcheck is not getting disabled. This leads to a conclusion that Portainer manages somehow '--no-healthcheck' option wrong way.
I want to use '--no-healtcheck' option as Node-Red container has healtcheck enabled by default and it causes excessive logging (Syslog):
May 23 13:41:14 nebulonserver systemd[1]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.iPwfl5.mount: Succeeded. May 23 13:41:45 nebulonserver systemd[968]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.CBunCG.mount: Succeeded. May 23 13:41:45 nebulonserver systemd[1]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.CBunCG.mount: Succeeded. May 23 13:42:16 nebulonserver systemd[968]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.86GJsi.mount: Succeeded. May 23 13:42:46 nebulonserver systemd[968]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.c1IvKK.mount: Succeeded. May 23 13:43:17 nebulonserver systemd[968]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.YILx1f.mount: Succeeded. May 23 13:43:47 nebulonserver systemd[1]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.26eNHT.mount: Succeeded. May 23 13:43:47 nebulonserver systemd[968]: run-docker-runtime\x2drunc-moby-00d4120caead6372631b47f1e0d98c2c0c138679fb21f63b15f930a60e58b4e3-runc.26eNHT.mount: Succeeded.
Expected behavior
I would like Portainer to respect and add properly 'no-healthcheck' option to a run container.
Technical details:
3-0debian-buster installed via OMVThe text was updated successfully, but these errors were encountered: