scout-cli icon indicating copy to clipboard operation
scout-cli copied to clipboard

`docker is not installed; refusing to install ...` when $DOCKER_HOME is not set

Open samuel-andres opened this issue 1 year ago • 1 comments

I'm trying to install scout on my fedora box and I'm getting this error, it seems that is because I don't have the $DOCKER_HOME environment variable set, but I couldn't find any documentation on that, I'm good setting that env var to ~/.local/share/docker or ~/.docker ? the error message is a bit confusing since I have docker installed

~$ sh install-scout.sh
\033[0;31m\033[1m[error]\033[0m docker is not installed; refusing to install to '/home/samuel/.docker/cli-plugins' \033[0m
~$

samuel-andres avatar Jun 13 '24 18:06 samuel-andres

@samuel-andres the issue indicates that the install-scout.sh script is looking for Docker, but it's not finding it in the expected location or it's not set up correctly. The $DOCKER_HOME environment variable might not be the issue; instead, it seems like the script is unable to detect Docker properly. Try out these steps and let me know if it works:

  1. Ensure docker is properly installed and set the docker's cli plugins directory through:- You can set the DOCKER_HOME environment variable, Docker's CLI plugins should be in ~/.docker/cli-plugins.
  2. To set the DOCKER_HOME environment variable, you can add the following line to your ~/.bashrc file: export DOCKER_HOME=~/.docker and then reload the config through :- source ~/.bashrc
  3. Make sure that the plugins directory exists and then re run the installation script again

hope, this helps and let me know if it doesn't Thanks

Siddharth-Latthe-07 avatar Jul 11 '24 12:07 Siddharth-Latthe-07