Comments (3)
It doesn't look like any relevant commits have been made since you opened this issue, but when experiencing the same or a similar issue I amended my docker-compose.yaml
from
labels:
autoheal: true
to
labels:
autoheal: "true"
after which docker inspect <name> | grep autoheal
returned the string with a lowercase 't' and the autoheal container picks up 'unhealthy' containers and restarts them succesfully. Are you still encountering this problem now?
from docker-autoheal.
I've ran onto this issue myself, causing investigation into why autoheal is not doing any correction of unhealthy containers. And while the label workaround (described above) has seemed to provided relief, as of the latest release of docker-compose, an new adjustment of no space between autoheal and "true" was required for me. If a space was included, docker-compose would complain about an invalid docker-compose.yaml file format. Details and sample below.
docker-compose version
docker-compose version 1.27.4, build 40524192
docker-py version: 4.3.1
CPython version: 3.7.7
OpenSSL version: OpenSSL 1.1.0l 10 Sep 2019
docker-compose.yaml
...
labels:
- autoheal:"true"
- autoheal.stop.timeout=60
docker inspect | grep autoheal
"autoheal.stop.timeout": "60",
"autoheal:\"true\"": "",
from docker-autoheal.
Is this supposed to be a container or service label? I'm having issues getting my stack deploy to not consider it "unsupported". I can add it manually using Portainer (which I'm trying to phase out), so could someone please let me know the proper placement? It seems that under deploy: it would be for the service. I also tried using build: but that was ignored. Here's pihole for reference.
services:
pihole:
deploy:
placement:
constraints:
- "node.role == manager"
dns:
- "127.0.0.1"
environment:
- TZ=America/New_York
- "DNS1=10.47.20.1#5053"
- WEBPASSWORD=xxxxxxxx
- ServerIP=10.47.20.2
hostname: pihole.xxxxxxxx.home
image: pihole/pihole
ports:
- "53:53"
- "53:53/udp"
- "67:67/udp"
- "80:80"
volumes:
- "/docker/pihole/pihole/:/etc/pihole/"
- "/docker/pihole/dnsmasq.d/:/etc/dnsmasq.d/"
from docker-autoheal.
Related Issues (20)
- Restart count? HOT 8
- WEBHOOK_URL
- Recreating container while restarting HOT 1
- How to send notifications to discord HOT 1
- "true" must be quoted in docker compose: documentation issue? HOT 2
- Restart Container failed 0- debugging, diagnosing? HOT 3
- Rework of alpine version tagging for docker images HOT 1
- Feature Request - Add custom text to webhook notifications HOT 1
- Optional Label not working
- Autoheal is healing ALL containers not just the ones with label HOT 3
- Feature/Question Notify Webhook also when container is restarting
- Possibility to exclude containers with a label? HOT 8
- segfault in ld-musl-x86_64.so.1 HOT 3
- **Feature Request** Restart Stack instead of just container HOT 6
- Vulnerabilities HOT 2
- Cannot stop Autoheal from restarting container..
- PWD services.yml
- WEBHOOK_URL for MS-TEAMS HOT 1
- Question: Why add arbitrary command execution?
- Why there is a new "latest" docker image tag create 16h ago if the latest github tag if from 2021? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-autoheal.