We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48a04a commit 6be28d4Copy full SHA for 6be28d4
1 file changed
app/internal/dockerutils/service.go
@@ -2,6 +2,7 @@ package dockerutils
2
3
import (
4
"context"
5
+ "fmt"
6
"os"
7
"strings"
8
"wireport/cmd/server/config"
@@ -156,6 +157,13 @@ func EnsureDockerNetworkIsAttachedToAllContainers() error {
156
157
}
158
159
for _, container := range containers {
160
+ // Skip wireport-gateway container (should not be connected to the network)
161
+ for _, name := range container.Names {
162
+ if name == fmt.Sprintf("/%s", config.Config.WireportGatewayContainerName) {
163
+ continue
164
+ }
165
166
+
167
// Skip containers that are already connected to the target network to avoid conflicts
168
if container.NetworkSettings != nil {
169
if _, ok := container.NetworkSettings.Networks[config.Config.DockerNetworkName]; ok {
0 commit comments