summaryrefslogtreecommitdiffhomepage
path: root/runsc/tools/dockercfg/dockercfg.go
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@gmail.com>2019-05-03 21:40:48 -0700
committerShentubot <shentubot@google.com>2019-05-03 21:41:45 -0700
commitbf0ac565d2873069799082ad7bc3e3c43acbc593 (patch)
tree398abb381e328568809e6e6b46a3a3a2d4034e25 /runsc/tools/dockercfg/dockercfg.go
parentb4a9f186872d6687f34e609a39aa10eb33cce1d2 (diff)
Fix runsc restore to be compatible with docker start --checkpoint ...
Change-Id: I02b30de13f1393df66edf8829fedbf32405d18f8 PiperOrigin-RevId: 246621192
Diffstat (limited to 'runsc/tools/dockercfg/dockercfg.go')
-rw-r--r--runsc/tools/dockercfg/dockercfg.go6
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 {