diff options
Diffstat (limited to 'runsc/tools/dockercfg/dockercfg.go')
-rw-r--r-- | runsc/tools/dockercfg/dockercfg.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runsc/tools/dockercfg/dockercfg.go b/runsc/tools/dockercfg/dockercfg.go index 6fb134558..eb9dbd421 100644 --- a/runsc/tools/dockercfg/dockercfg.go +++ b/runsc/tools/dockercfg/dockercfg.go @@ -28,7 +28,8 @@ import ( ) var ( - configFile = flag.String("config_file", "/etc/docker/daemon.json", "path to Docker daemon config file") + configFile = flag.String("config_file", "/etc/docker/daemon.json", "path to Docker daemon config file") + experimental = flag.Bool("experimental", false, "enable experimental features") ) func main() { @@ -96,6 +97,9 @@ func (r *runtimeAdd) Execute(_ context.Context, f *flag.FlagSet, args ...interfa rts = make(map[string]interface{}) c["runtimes"] = rts } + if *experimental { + c["experimental"] = true + } rts[name] = runtime{Path: path, RuntimeArgs: runtimeArgs} if err := writeConfig(c, *configFile); err != nil { |