Skip to content

Commit 748703d

Browse files
authored
Merge pull request #62 from adangel/podman-exec-start
fix: provide ExecIdStartPostBody at StartedGenericContainer::exec
2 parents 2140a40 + 6e8f719 commit 748703d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Container/StartedGenericContainer.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,11 @@ public function exec(array $command): string
6464

6565
$this->lastExecId = $exec->getId();
6666

67+
$startConfig = new ExecIdStartPostBody();
68+
$startConfig->setDetach(false);
69+
6770
$contents = $this->dockerClient
68-
->execStart($this->lastExecId, null, Client::FETCH_RESPONSE)
71+
->execStart($this->lastExecId, $startConfig, Client::FETCH_RESPONSE)
6972
?->getBody()
7073
->getContents() ?? '';
7174

0 commit comments

Comments
 (0)