hi - I'm trying to install fleet following the set...
# fleet
t
hi - I'm trying to install fleet following the setup instructions here https://github.com/fleetdm/fleet#try-fleet and I'm getting a docker-compose error
Copy code
┌──(root💀kali)-[~]
└─# fleetctl preview
Downloading dependencies into /root/.fleet/preview...
Pulling Docker dependencies...
Invalid interpolation format for "fleet01" option in service "services": "fleetdm/fleet:${FLEET_VERSION:-latest}"

Failed to run docker-compose
Can anyone help me with this?
t
hi! Sorry to hear you're having issues running the preview. It looks like it's not able to pull the docker images. Does
env | grep FLEET_VERSION
return anything?
t
Copy code
┌──(root💀kali)-[~]
└─# env | grep FLEET_VERSION
not by default, however I have set that variable to "v4.0.1" and "4.0.1" and get the same result
Copy code
┌──(root💀kali)-[~]
└─# echo ${FLEET_VERSION:-latest}                                        1 ⨯
v4.0.1
                                                                             
┌──(root💀kali)-[~]
└─# env | grep FLEET_VERSION             
FLEET_VERSION=v4.0.1
                                                                             
┌──(root💀kali)-[~]
└─# fleetctl preview                     
Downloading dependencies into /root/.fleet/preview...
Pulling Docker dependencies...
Invalid interpolation format for "fleet01" option in service "services": "fleetdm/fleet:${FLEET_VERSION:-latest}"

Failed to run docker-compose
I get the same error on Ubuntu as well
Copy code
server@ubuntu:~$ sudo fleetctl preview
[sudo] password for server: 
Downloading dependencies into /root/.fleet/preview...
Pulling Docker dependencies...
Invalid interpolation format for "fleet01" option in service "services": "fleetdm/fleet:${FLEET_VERSION:-latest}"

Failed to run docker-compose
works on my mac though, unfortunately I need it to work on these VMs
t
could you try running
unset FLEET_VERSION
and try again? The latest is 4.0.1 currently anyway
t
Copy code
server@ubuntu:~$ unset FLEET_VERSION
server@ubuntu:~$ env | grep FLEET
server@ubuntu:~$ sudo fleetctl preview
Downloading dependencies into /root/.fleet/preview...
Pulling Docker dependencies...
Invalid interpolation format for "fleet01" option in service "services": "fleetdm/fleet:${FLEET_VERSION:-latest}"

Failed to run docker-compose
t
that is odd, I'll investigate. In the meantime, so that I understand, what limitation are you encountering running preview on mac?
t
just for requirements of the project I'm working on
I appreciate your help!
b
can you run
docker-compose --version
? or if using the latest docker desktop docker compose is now bundled into the docker binary so you can run
docker compose version
t
I just reinstalled docker compose
I'm using https://docs.docker.com/compose/install/ now instead of from apt install
it appears to work correctlynow
b
yeah I had a feeling this was a docker-compose issue, glad everything got sorted out though
👍 1