You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.go
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,8 @@ var (
59
59
dockerUserstring
60
60
dockerContainerstring
61
61
dockerGCDelay time.Duration
62
-
dockerNetHostbool
62
+
dockerNetHostbool// Deprecated
63
+
dockerNetworkModestring
63
64
dockerPrivilegedbool
64
65
)
65
66
@@ -83,7 +84,8 @@ func init() {
83
84
f.StringVar(&dockerUser, "dockerUser", "", "use the given name as user to run the Docker container")
84
85
f.StringVar(&dockerContainer, "dockerContainer", "", "name of the docker container that is running this process")
85
86
f.DurationVar(&dockerGCDelay, "dockerGCDelay", defaultDockerGCDelay, "Delay before stopped containers are garbage collected")
86
-
f.BoolVar(&dockerNetHost, "dockerNetHost", false, "Run containers with --net=host")
87
+
f.BoolVar(&dockerNetHost, "dockerNetHost", false, "Run containers with --net=host. (deprecated, use --dockerNetworkMode=host instead)")
88
+
f.StringVar(&dockerNetworkMode, "dockerNetworkMode", "", "Run containers with --net=<value>")
87
89
f.BoolVar(&dockerPrivileged, "dockerPrivileged", false, "Run containers with --privileged")
88
90
f.BoolVar(&allPortOffsetsUnique, "uniquePortOffsets", false, "If set, all peers will get a unique port offset. If false (default) only portOffset+peerAddress pairs will be unique.")
89
91
f.StringVar(&jwtSecretFile, "jwtSecretFile", "", "name of a plain text file containing a JWT secret used for server authentication")
0 commit comments