coolify: [Bug]: Server with already installed docker engine cannot be added/validated
Description
I cannot seem to add a server (based on NixOS) with a running docker engine to Coolify. It’s stuck on:
Server OS type is not supported for automated installation. Please install Docker manually before continuing: <Link to docs>
However, if I run command -v docker on the NixOS server, everything is working OK. The only difference to a Ubuntu-based server is that the executable is located at: /run/current-system/sw/bin/docker instead of /usr/bin/docker. But adding a symbolic link from /usr/bin/docker to the binary location on Ubuntu does not work either.
Minimal Reproduction (if possible, example repository)
- install docker engine on NixOS-based server
- Try to add the server in Coolify
- Validate that SSH connection succeeds
- Run into error mentioned above
Exception or Error
Server OS type is not supported for automated installation. Please install Docker manually before continuing: <Link to docs>
Version
v4.0.0-beta.174
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 4
- Comments: 15 (2 by maintainers)
A temporary hack-fix was easy:
Run the validation, it passes, then just restore the
os-releaseSince I am also primarily running NixOS, I will soon add official NixOS support (which will fix this problem).
I never used NixOS based server, so it is time to test it.
Managed to pinpoint it to this
https://github.com/coollabsio/coolify/blob/88581c898356e7292f999890a8aa6fff29e650ad/app/Livewire/Server/ValidateAndInstall.php#L83-L87
So it recommends manual installation but does not have a branch of logic for the case where the user did do a manual installation.
I suggest either:
if (!$this->supported_os_type)and proceed with version checking if that was successful