SIGN IN SIGN UP
docker / compose UNCLAIMED

Define and run multi-container applications with Docker

0 0 63 Go

fix: gate extra EndpointsConfig behind API >= 1.44

Before API 1.44 (Docker Engine 25.0), ContainerCreate only accepted a
single EndpointsConfig entry. Passing multiple entries silently drops
all but one network, leaving containers under-connected on older daemons
such as Docker 20.10 or Synology DSM 7.1/7.2.

Add apiVersion144 constant and wrap the secondary-networks loop in
defaultNetworkSettings so that only the primary network is included in
the ContainerCreate call when the negotiated API version is below 1.44.

Signed-off-by: jarek <jkrochmalski@gmail.com>
J
jarek committed
3b1004c4d9d5e2d6102dc3134fe7ed83eaabcfa6
Parent: 9cab439
Committed by Guillaume Lours <705411+glours@users.noreply.github.com> on 3/31/2026, 1:44:00 PM