-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The unhandled exception could crash the deck-chores container #113
Comments
I found a fun one that is in a similar vein to this: if you have jobs that occur at the same time (haven't figured out if it is start or finished) then you can easily crash the deck-chores container. I tried it out for a bunch of different times (1s, 5s, 10s) and it can consistent cause an unhandled error and freeze the officer container. services:
officer:
restart: always
image: funkyfuture/deck-chores:1
environment:
TIMEZONE: "America/New York"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
neverending:
restart: always
image: alpine
command: tail -f /dev/null
labels:
deck-chores.herenow.command: sh -c "echo 'mario' &> /proc/1/fd/1"
deck-chores.herenow.interval: every 10 seconds
deck-chores.dump.command: sh -c 'echo hello > /proc/1/fd/1 2> /proc/1/fd/2'
deck-chores.dump.interval: every 10 seconds
deck-chores.kherenow.command: sh -c '>&2 echo error 2> /proc/1/fd/2'
deck-chores.kherenow.interval: every 10 seconds
LOG:
|
Hi @tabedzki, |
Summary
I found a case when managing the containers labels related to deck-chores could trigger various exceptions.
This exception causes the
deck-chores
container to crash.Reproduction
docker run -it -v /var/run/docker.sock:/var/run/docker.sock -e TZ=UTC funkyfuture/deck-chores:1.3.10
.compose1.yaml
compose2.yaml
docker-compose -f compose1.yaml up -d; docker-compose -f compose2.yaml up -d; docker-compose -f compose1.yaml up -d
.Version
Additional
There are also other exceptions, but they don't terminate the container.
exception 1
exception 2
exception 3
The text was updated successfully, but these errors were encountered: