summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd/start.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-23 05:11:12 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-23 05:11:12 +0000
commit91d7460880c16fe0025540db48721c75d9609df3 (patch)
treee2fd17fa74d6f636b6261969f46b6b58dddb7fb9 /runsc/cmd/start.go
parentf7b2cfd51f242263e1425b240cecfb43275746b8 (diff)
parent293877cf647ac3e900f0ae15061317a512bba7a0 (diff)
Merge release-20201019.0-33-g293877cf6 (automated)
Diffstat (limited to 'runsc/cmd/start.go')
-rw-r--r--runsc/cmd/start.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/runsc/cmd/start.go b/runsc/cmd/start.go
index 88991b521..139edbd49 100644
--- a/runsc/cmd/start.go
+++ b/runsc/cmd/start.go
@@ -21,6 +21,7 @@ import (
"gvisor.dev/gvisor/runsc/config"
"gvisor.dev/gvisor/runsc/container"
"gvisor.dev/gvisor/runsc/flag"
+ "gvisor.dev/gvisor/runsc/specutils"
)
// Start implements subcommands.Command for the "start" command.
@@ -58,6 +59,12 @@ func (*Start) Execute(_ context.Context, f *flag.FlagSet, args ...interface{}) s
if err != nil {
Fatalf("loading container: %v", err)
}
+ // Read the spec again here to ensure flag annotations from the spec are
+ // applied to "conf".
+ if _, err := specutils.ReadSpec(c.BundleDir, conf); err != nil {
+ Fatalf("reading spec: %v", err)
+ }
+
if err := c.Start(conf); err != nil {
Fatalf("starting container: %v", err)
}