Skip to content

Commit 9556217

Browse files
author
Arnaud Lier
authored
feat: add check for docker compose plugin
Fixes #140
1 parent b1e7a62 commit 9556217

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

book/reqs.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ func CheckRequirements() (bool, error) {
137137
}
138138

139139
// Docker Compose
140-
if _, err := exec.LookPath("docker-compose"); err != nil {
140+
_, composeBinary := exec.LookPath("docker-compose")
141+
composePlugin := exec.Command("docker", "compose").Run()
142+
if composeBinary != nil && composePlugin != nil {
141143
ready = false
142144
terminal.Println("<error>[KO]</> Cannot find Docker Compose, please install it <href=https://docs.docker.com/compose/install/>https://docs.docker.com/compose/install/</>")
143145
} else {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy