diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-08-04 23:48:28 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-08-04 23:48:28 +0000 |
commit | a1356634b1f3f89aee4acd2b7966df31b29fb97c (patch) | |
tree | cb1b8ed2b70e627c99186e904f1f3c5493015119 /runsc/container | |
parent | e6ce797f3838622a396586f4f85b78241af85c64 (diff) | |
parent | cbb99336cee7d37f4050875a95946ca88b7ac690 (diff) |
Merge release-20210726.0-32-gcbb99336c (automated)
Diffstat (limited to 'runsc/container')
-rw-r--r-- | runsc/container/container.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runsc/container/container.go b/runsc/container/container.go index 6a9a07afe..d1f979eb2 100644 --- a/runsc/container/container.go +++ b/runsc/container/container.go @@ -646,6 +646,12 @@ func (c *Container) Resume() error { return c.saveLocked() } +// Cat prints out the content of the files. +func (c *Container) Cat(files []string, out *os.File) error { + log.Debugf("Cat in container, cid: %s, files: %+v", c.ID, files) + return c.Sandbox.Cat(c.ID, files, out) +} + // State returns the metadata of the container. func (c *Container) State() specs.State { return specs.State{ |