mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Unhide containerd-namespace flags
The daemon expects to manage/handle everything going into the containerd namespace it uses, and things break when it shares that namespace with a second instance, so we should expose these flags and expect users that want two daemons sharing a containerd instance to use separate namespaces for them. Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
This commit is contained in:
parent
761066faf1
commit
d99e8d2c3b
1 changed files with 2 additions and 4 deletions
|
@ -97,11 +97,9 @@ func installCommonConfigFlags(conf *config.Config, flags *pflag.FlagSet) error {
|
|||
conf.MaxDownloadAttempts = &maxDownloadAttempts
|
||||
|
||||
flags.StringVar(&conf.ContainerdNamespace, "containerd-namespace", daemon.ContainersNamespace, "Containerd namespace to use")
|
||||
if err := flags.MarkHidden("containerd-namespace"); err != nil {
|
||||
return err
|
||||
}
|
||||
flags.StringVar(&conf.ContainerdPluginNamespace, "containerd-plugins-namespace", containerd.PluginNamespace, "Containerd namespace to use for plugins")
|
||||
return flags.MarkHidden("containerd-plugins-namespace")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func installRegistryServiceFlags(options *registry.ServiceOptions, flags *pflag.FlagSet) {
|
||||
|
|
Loading…
Reference in a new issue