docker-autoheal icon indicating copy to clipboard operation
docker-autoheal copied to clipboard

autoheal container constantly restarts. "autoheal exited with code 7"

Open dziban303 opened this issue 3 years ago • 2 comments

When trying to add autoheal to my container stack, it seems to fail and restart over and over. "autoheal exited with code 7" is emitted to the log each time. Google hasn't been particularly helpful; in particular, there are no results at all for this error message, which doesn't bode well for me.

This is how I have autoheal set up in my compose file:

  autoheal:
    image: willfarrell/autoheal:latest
    tty: true
    container_name: autoheal
    restart: always
    environment:
      - AUTOHEAL_CONTAINER_LABEL=all
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock

I've tried it on several stacks with the same result. The system is a Pi4 4GB on Bullseye. Docker version 20.10.19, build d85ef84.

I had it running without issue on an identical stack on this Pi once before, but after reimaging and starting over the issue began. It has never run successfully in the system's current incarnation.

Any ideas?

dziban303 avatar Dec 12 '22 16:12 dziban303

I have the same problem.

lptr avatar Dec 24 '22 15:12 lptr

I don't have a Pi to test with, can one possibly build/test with set -exou pipefail in entrypoint?

hasnat avatar Dec 24 '22 16:12 hasnat