Skip to content

fleetctl preview fails to use docker compose #21007

@roperzh

Description

@roperzh

Fleet version: 4.54

Web browser and operating system:


💥  Actual behavior

if docker-compose is not installed, fleetctl preview fails with:

Error: `docker compose` is required for the fleetctl preview experience.

Please install `docker compose` (https://docs.docker.com/compose/install/).

🧑‍💻  Steps to reproduce

  1. In a machine with Docker installed but without the deprecated docker-compose, try to run fleetctl preview

1 might be too much trouble to repro and we can rely on the workers which are currently failing:

https://github.com/fleetdm/fleet/actions/runs/10219989323/job/28279424468?pr=21004

if the PR fixes the worker it might be enough to call it

🕯️ More info (optional)

fleetctl is performing the check, but seems like the command is wrong:

if err := exec.Command("docker", "compose").Run(); err == nil {
return dockerCompose{dockerComposeV2}, nil
}

Metadata

Metadata

Assignees

Labels

#g-mdmMDM product group:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documented~released bugThis bug was found in a stable release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions