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: apis/swagger.yml
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2149,7 +2149,9 @@ definitions:
2149
2149
x-nullable: false
2150
2150
Env:
2151
2151
description: |
2152
-
A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value.
2152
+
A list of environment variables to set inside the container in the form `["VAR=value", ...]`.
2153
+
A variable like "A=" means setting env A in container to be empty value.
2154
+
And a variable without `=` is removed from the environment, rather than to have an empty value.
2153
2155
type: "array"
2154
2156
items:
2155
2157
type: "string"
@@ -2505,7 +2507,9 @@ definitions:
2505
2507
$ref: "#/definitions/RestartPolicy"
2506
2508
Env:
2507
2509
description: |
2508
-
A list of environment variables to set inside the container in the form `["VAR=value", ...]`. A variable without `=` is removed from the environment, rather than to have an empty value.
2510
+
A list of environment variables to set inside the container in the form `["VAR=value", ...]`.
2511
+
A variable like "A=" means updating env A in container to be empty value.
2512
+
A variable without `=` is removed from the environment, rather than to have an empty value.
flagSet.BoolVar(&c.enableLxcfs, "enableLxcfs", false, "Enable lxcfs for the container, only effective when enable-lxcfs switched on in Pouchd")
41
41
flagSet.StringVar(&c.entrypoint, "entrypoint", "", "Overwrite the default ENTRYPOINT of the image")
42
-
flagSet.StringArrayVarP(&c.env, "env", "e", nil, "Set environment variables for container")
42
+
flagSet.StringArrayVarP(&c.env, "env", "e", nil, "Set environment variables for container('--env A=' means setting env A to empty, '--env B' means removing env B from container env inherited from image)")
flagSet.BoolVar(&c.disableNetworkFiles, "disable-network-files", false, "Disable the generation of network files(/etc/hostname, /etc/hosts and /etc/resolv.conf) for container. If true, no network files will be generated. Default false")
flagSet.StringSliceVarP(&uc.env, "env", "e", nil, "Set environment variables for container")
55
-
flagSet.StringSliceVarP(&uc.labels, "label", "l", nil, "Set label for container")
54
+
flagSet.StringSliceVarP(&uc.env, "env", "e", nil, "Update environment variables for container('--env A=' means updating env A to be empty and '--env A' means removing env A)")
55
+
flagSet.StringSliceVarP(&uc.labels, "label", "l", nil, "Update labels for container")
56
56
flagSet.StringVar(&uc.restartPolicy, "restart", "", "Restart policy to apply when container exits")
57
57
flagSet.StringSliceVar(&uc.diskQuota, "disk-quota", nil, "Update disk quota for container(/=10g)")
58
58
flagSet.StringSliceVar(&uc.specAnnotation, "annotation", nil, "Update annotation for runtime spec")
0 commit comments