Description
Describe the bug
we have installed the loki-docker-driver on all our devices.
The loki server on an extra server, if the loki-server is updated/restarted or just not reachable then after a short time all containers get stuck (docker logs does not update anymore).
If the loki-server is not reachable, the containers can neither be stopped/kill nor restarted.
To Reproduce
Steps to reproduce the behavior:
- start loki server (server)
- install loki-docker-driver on another system (can also be tested on one and the same system) (client)
2.1./etc/docker/daemon.json
{ "live-restore": true, "log-driver": "loki", "log-opts": { "loki-url": "http://loki:3100/api/prom/push", "mode": "non-blocking", "loki-batch-size": "400", "max-size": "1g" } }
docker run --rm --name der-container -d debian /bin/sh -c "while true; do date >> /tmp/ts ; seq 0 1000000; sleep 1 ; done"
(client)docker exec -it der-container tail -f /tmp/ts
shows every second the time (client)docker logs -f der-container
show numbers from 0-1000000 (client)- stop loki server (server)
- you will see that the outputs on the system stop with the loci-driver and that you cannot stop the container (client)
docker stop der-container
(client)
Expected behavior
A clear and concise description of what you expected to happen.
I would like all containers to continue to run as desired even if the loci is not accessible.
That man container can start/stop even if loki is not reachable
Environment:
- Infrastructure: [bare-metal, laptop, VMs]
- Deployment tool: [docker-compose]
Screenshots, Promtail config, or terminal output
loki-docker-driver version: loki-docker-driver:master-616771a (from then on the driver option "non-blocking" is supported)
loki server: 1.5.0
I am very grateful for any help, this problem has caused our whole system to collapse