Closed
Description
After a while I updated manually to :latest
image from docker hub and all my containers ended up with upstream server 127.0.0.1 down;
.
I copied nginx.tmpl
, and after a while I found out {{ $CurrentContainer := where $ "ID" .Docker.CurrentContainerID | first }}
returns null
, so this range can never set $server_found
to true.
Change from $CurrentContainer.Networks
to $container.Networks
(from outer range) solved the problem.
I am running Debian Bullseye (daily dist-upgraded until Bullseye is stable), and docker-ce vevrsion 5:20.10.7~3-0~debian-bullseye from docker.com (i.e. not debian-packaged docker).
Can somebody confirm this behavior? I can make pull request.
Metadata
Metadata
Assignees
Labels
No labels