Skip to content

Commit 2855e9d

Browse files
committed
fix(closes #17): gate Docker CLI resolution behind plugin Enable
1 parent f100a39 commit 2855e9d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

plugins/docker_base.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ func (d *DockerBasePlugin) OnInitForSite(conf config.SiteConfig, domainLogger *l
7373
}
7474
d.Config = cfg
7575

76+
// If the Docker plugin is not enabled (or not configured) for this site,
77+
// skip CLI resolution entirely so that a missing docker/podman binary does
78+
// not break plugin init on machines that don't need Docker.
79+
if !d.Config.Enable {
80+
return nil
81+
}
82+
7683
// Determine CLICommand if not set.
7784
if d.Config.CLICommand == "" {
7885
if _, err := exec.LookPath("docker"); err == nil {

0 commit comments

Comments
 (0)