Title
#fleet
t

TC

07/21/2021, 1:05 PM
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
┌──(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?
Tomas Touceda

Tomas Touceda

07/21/2021, 1:26 PM
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

TC

07/21/2021, 1:30 PM
┌──(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
1:32 PM
┌──(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
1:37 PM
I get the same error on Ubuntu as well
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
1:39 PM
works on my mac though, unfortunately I need it to work on these VMs
Tomas Touceda

Tomas Touceda

07/21/2021, 2:10 PM
could you try running
unset FLEET_VERSION
and try again? The latest is 4.0.1 currently anyway
t

TC

07/21/2021, 2:12 PM
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
Tomas Touceda

Tomas Touceda

07/21/2021, 2:16 PM
that is odd, I'll investigate. In the meantime, so that I understand, what limitation are you encountering running preview on mac?
t

TC

07/21/2021, 2:32 PM
just for requirements of the project I'm working on
2:32 PM
I appreciate your help!
Benjamin Edwards

Benjamin Edwards

07/21/2021, 2:42 PM
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

TC

07/21/2021, 2:44 PM
I just reinstalled docker compose
2:44 PM
I'm using https://docs.docker.com/compose/install/ now instead of from apt install
2:44 PM
it appears to work correctlynow
Benjamin Edwards

Benjamin Edwards

07/21/2021, 2:44 PM
yeah I had a feeling this was a docker-compose issue, glad everything got sorted out though