diff options
author | Fabricio Voznika <fvoznika@google.com> | 2019-04-11 17:53:24 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-11 17:54:34 -0700 |
commit | 546a1df7d15fd80f510d4203c5f9255bba4b4211 (patch) | |
tree | fd65630e6685d2952e6fc079bb81289d213ed728 /runsc/sandbox/sandbox.go | |
parent | 6b24f7ab0863004a30c2f1aff88440fbb4cf3b3c (diff) |
Add 'runsc do' command
It provides an easy way to run commands to quickly test gVisor.
By default it maps the host root as the container root with a
writable overlay on top (so the host root is not modified).
Example:
sudo runsc do ls -lh --color
sudo runsc do ~/src/test/my-test.sh
PiperOrigin-RevId: 243178711
Change-Id: I05f3d6ce253fe4b5f1362f4a07b5387f6ddb5dd9
Diffstat (limited to 'runsc/sandbox/sandbox.go')
-rw-r--r-- | runsc/sandbox/sandbox.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runsc/sandbox/sandbox.go b/runsc/sandbox/sandbox.go index ae6375e13..92495c69e 100644 --- a/runsc/sandbox/sandbox.go +++ b/runsc/sandbox/sandbox.go @@ -104,7 +104,7 @@ func New(id string, spec *specs.Spec, conf *boot.Config, bundleDir, consoleSocke // Wait until the sandbox has booted. b := make([]byte, 1) if l, err := clientSyncFile.Read(b); err != nil || l != 1 { - return nil, fmt.Errorf("reading from the start-sync descriptor: %v", err) + return nil, fmt.Errorf("waiting for sandbox to start: %v", err) } c.Release() |