1 parent 0136e53 commit 99e50e0Copy full SHA for 99e50e0
2 files changed
cmd/main/main.go
@@ -1,10 +1,13 @@
1
package main
2
3
import (
4
+ "goisolator/internal/config"
5
"goisolator/internal/docker"
6
)
7
8
func main() {
9
+ config.GetConfig()
10
+
11
for {
12
docker.StartListener()
13
}
internal/docker/isolator.go
@@ -110,8 +110,8 @@ func NetworkAtoB(a, b string) error {
110
Attachable: true,
111
Labels: map[string]string{
112
"goisolator": "true",
113
- "goisolator.a": a,
114
- "goisolator.b": b,
+ "goisolator.a": ContainerName(a),
+ "goisolator.b": ContainerName(b),
115
},
116
})
117
if err != nil {
0 commit comments