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
rootCmd.PersistentFlags().Bool("kube-hide-dupe", cfg.KubeHideDupe, "Deduplicate images for Kubernetes with namespace k8s.io")
189
189
rootCmd.PersistentFlags().StringSlice("cdi-spec-dirs", cfg.CDISpecDirs, "The directories to search for CDI spec files. Defaults to /etc/cdi,/var/run/cdi")
190
190
rootCmd.PersistentFlags().String("userns-remap", cfg.UsernsRemap, "Support idmapping for creating and running containers. This options is only supported on linux. If `host` is passed, no idmapping is done. if a user name is passed, it does idmapping based on the uidmap and gidmap ranges specified in /etc/subuid and /etc/subgid respectively")
191
+
helpers.HiddenPersistentStringArrayFlag(rootCmd, "global-dns", cfg.DNS, "Global DNS servers for containers")
192
+
helpers.HiddenPersistentStringArrayFlag(rootCmd, "global-dns-opts", cfg.DNSOpts, "Global DNS options for containers")
193
+
helpers.HiddenPersistentStringArrayFlag(rootCmd, "global-dns-search", cfg.DNSSearch, "Global DNS search domains for containers")
|`debug_full`|`--debug-full`|| Debug mode (with full output) | Since 0.16.0 |
@@ -50,14 +53,16 @@ userns_remap = ""
50
53
|`kube_hide_dupe`|`--kube-hide-dupe`|| Deduplicate images for Kubernetes with namespace k8s.io, no more redundant <none> ones are displayed | Since 2.0.3 |
51
54
|`cdi_spec_dirs`|`--cdi-spec-dirs`|| The folders to use when searching for CDI ([container-device-interface](https://github.com/cncf-tags/container-device-interface)) specifications. | Since 2.1.0 |
52
55
|`userns_remap`|`--userns-remap`|| Support idmapping of containers. This options is only supported on rootful linux. If `host` is passed, no idmapping is done. if a user name is passed, it does idmapping based on the uidmap and gidmap ranges specified in /etc/subuid and /etc/subgid respectively. | Since 2.1.0 |
56
+
|`dns`||| Set global DNS servers for containers | Since 2.1.3 |
57
+
|`dns_opts`||| Set global DNS options for containers | Since 2.1.3 |
58
+
|`dns_search`||| Set global DNS search domains for containers | Since 2.1.3 |
53
59
54
60
The properties are parsed in the following precedence:
55
61
1. CLI flag
56
62
2. Env var
57
63
3. TOML property
58
64
4. Built-in default value (Run `nerdctl --help` to see the default values)
0 commit comments