diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-11-27 12:03:43 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-29 18:43:56 +0000 |
commit | 13e833a3884a22ac303b6f97a59cbeef16950243 (patch) | |
tree | dfaf8d95d6e9f52a0018e7b1bcc7c0360a706d03 /libpod/container_attach.go | |
parent | d55cb0f58981d52ed970156acd5f499659962b32 (diff) | |
download | podman-13e833a3884a22ac303b6f97a59cbeef16950243.tar.gz podman-13e833a3884a22ac303b6f97a59cbeef16950243.tar.bz2 podman-13e833a3884a22ac303b6f97a59cbeef16950243.zip |
Change location of created runc specs to make them survive reboot
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #78
Approved by: rhatdan
Diffstat (limited to 'libpod/container_attach.go')
-rw-r--r-- | libpod/container_attach.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_attach.go b/libpod/container_attach.go index 8c1c98fe5..7775e1a5d 100644 --- a/libpod/container_attach.go +++ b/libpod/container_attach.go @@ -53,7 +53,7 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi term.SetRawTerminal(inputStream.Fd()) } - controlPath := filepath.Join(c.state.RunDir, "ctl") + controlPath := filepath.Join(c.bundlePath(), "ctl") controlFile, err := os.OpenFile(controlPath, unix.O_WRONLY, 0) if err != nil { return errors.Wrapf(err, "failed to open container ctl file: %v") |