1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-16 06:59:25 +00:00

Updates deployListener() to contain docker output check compatible with Docker Engine 28 and below (#3865)

This commit is contained in:
Ned Faulkner
2025-07-09 19:53:34 +01:00
committed by GitHub
parent 3455c0eb3c
commit bddf884e52

View File

@@ -905,7 +905,7 @@ func (c *Cluster) deployListener(ctx context.Context, host *hosts.Host, portList
logrus.Debugf("[network] Starting deployListener [%s] on host [%s]", containerName, host.Address)
if err := docker.DoRunContainer(ctx, host.DClient, imageCfg, hostCfg, containerName, host.Address, "network", c.PrivateRegistriesMap); err != nil {
if strings.Contains(err.Error(), "bind: address already in use") {
if strings.Contains(err.Error(), ": address already in use") {
logrus.Debugf("[network] Service is already up on host [%s]", host.Address)
return nil
}