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: runsc/config/flags.go
+6-3
Original file line number
Diff line number
Diff line change
@@ -44,13 +44,16 @@ const (
44
44
flagOCISeccomp="oci-seccomp"
45
45
flagOverlay2="overlay2"
46
46
flagAllowFlagOverride="allow-flag-override"
47
+
48
+
defaultRootDir="/var/run/runsc"
49
+
xdgRuntimeDirEnvVar="XDG_RUNTIME_DIR"
47
50
)
48
51
49
52
// RegisterFlags registers flags used to populate Config.
50
53
funcRegisterFlags(flagSet*flag.FlagSet) {
51
54
// Although these flags are not part of the OCI spec, they are used by
52
55
// Docker, and thus should not be changed.
53
-
flagSet.String("root", "", "root directory for storage of container state.")
56
+
flagSet.String("root", "", fmt.Sprintf("root directory for storage of container state, defaults are $%s/runsc, %s.", xdgRuntimeDirEnvVar, defaultRootDir))
54
57
flagSet.String("log", "", "file path where internal debug information is written, default is stdout.")
55
58
flagSet.String("log-format", "text", "log format: text (default), json, or json-k8s.")
0 commit comments