Skip to content

Commit afee2ed

Browse files
committed
feat: add support for podman to build container images
fixes #53
1 parent 9f1940a commit afee2ed

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Executable/DockerExecutable.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ public function getDisplayName(): string
3838
*/
3939
public function getExecutable(): string
4040
{
41-
return 'docker';
41+
static $executable;
42+
43+
if (!is_string($executable)) {
44+
$executable = $this->isExecutableInstalled('podman') ? 'podman' : 'docker';
45+
}
46+
47+
return $executable;
4248
}
4349

4450
/**

0 commit comments

Comments
 (0)