Skip to content

Commit bddf884

Browse files
authored
Updates deployListener() to contain docker output check compatible with Docker Engine 28 and below (#3865)
1 parent 3455c0e commit bddf884

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cluster/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ func (c *Cluster) deployListener(ctx context.Context, host *hosts.Host, portList
905905

906906
logrus.Debugf("[network] Starting deployListener [%s] on host [%s]", containerName, host.Address)
907907
if err := docker.DoRunContainer(ctx, host.DClient, imageCfg, hostCfg, containerName, host.Address, "network", c.PrivateRegistriesMap); err != nil {
908-
if strings.Contains(err.Error(), "bind: address already in use") {
908+
if strings.Contains(err.Error(), ": address already in use") {
909909
logrus.Debugf("[network] Service is already up on host [%s]", host.Address)
910910
return nil
911911
}

0 commit comments

Comments
 (0)