summaryrefslogtreecommitdiff
path: root/libpod/container_attach.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/container_attach.go')
-rw-r--r--libpod/container_attach.go2
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")