I'm running Ubuntu 20.04 and latest install method...
# fleet
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 091723 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 091528 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
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
My guess will be that
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/
@Erik Tank I did some more research and found out that there is an open PR that will resolve this issue https://github.com/fleetdm/fleet/pull/5755 Currently fleetctl is checking for the
binary and not the
docker compose
That says it was merged 7 days ago - doesn't that mean it should work as is - or am I misunderstanding something?
@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.
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!
@Erik Tank Fleet v4.15.0 has been released 🎊 and it comes with the support for
docker compose