Title
#fleet
e

Erik Tank

05/23/2022, 4:19 AM
I'm running Ubuntu 20.04 and latest install method of docker which includes docker-compose... I'm getting this upon fleetctl install. Can anyone help me? root@testmachineπŸ˜•home/user1# npm install -g fleetctl /usr/local/bin/fleetctl -> /usr/local/lib/node_modules/fleetctl/run.js+ fleetctl@4.14.0 updated 1 package in 3.07s root@testmachineπŸ˜•home/user1# fleetctl preview Installing fleetctl v4.14.0... Install completed. Error: Docker Compose is required for the fleetctl preview experience. Please install Docker Compose (https://docs.docker.com/compose/install/). root@testmachineπŸ˜•home/user1# More info: root@testmachineπŸ˜•home/user1# docker version Client: Docker Engine - Community Version: 20.10.16 API version: 1.41 Go version: go1.17.10 Git commit: aa7e414 Built: Thu May 12 09:17:23 2022 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.16 API version: 1.41 (minimum version 1.12) Go version: go1.17.10 Git commit: f756502 Built: Thu May 12 09:15:28 2022 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.4 GitCommit: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16 runc: Version: 1.1.1 GitCommit: v1.1.1-0-g52de29d docker-init: Version: 0.19.0 GitCommit: de40ad0 root@testmachineπŸ˜•home/user1# docker-compose version -bash: /usr/bin/docker-compose: No such file or directory root@testmachineπŸ˜•home/user1# docker compose version Docker Compose version v2.5.0
koo

koo

05/23/2022, 9:37 AM
Hey @Erik Tank I think fleet-ctl is looking for the docker-compose binary and not the built-in docker compose in newer versions of the Docker CLI
9:51 AM
My guess will be that
fleetctl
is trying to run docker as a non-root user. Can you verify that you can run Docker as a non root user? You can check here for more info on that. https://docs.docker.com/engine/install/linux-postinstall/
3:00 PM
@Erik Tank I did some more research and found out that there is an open PR that will resolve this issuehttps://github.com/fleetdm/fleet/pull/5755 Currently fleetctl is checking for the
docker-compose
binary and not the
docker compose
command.
e

Erik Tank

05/24/2022, 12:05 AM
That says it was merged 7 days ago - doesn't that mean it should work as is - or am I misunderstanding something?
Guillaume

Guillaume

05/24/2022, 2:09 PM
@Erik Tank It will be in the next scheduled release. It’s been merged after the last release, so even though it’s in the main branch it would only work like that if you were building from source at the moment.
koo

koo

05/24/2022, 3:46 PM
Thanks @Guillaume. I should have clarified that @Erik Tank. Be sure to look out for the next release. I’ll also ping you in case you missed it!
6:00 AM
@Erik Tank Fleet v4.15.0 has been released 🎊 and it comes with the support for
docker compose
https://github.com/fleetdm/fleet/releases/tag/fleet-v4.15.0