sbom-cli-plugin icon indicating copy to clipboard operation
sbom-cli-plugin copied to clipboard

Installing plugin without Docker Desktop

Open Luskidoo opened this issue 3 years ago • 2 comments
trafficstars

What would you like to be added: When trying to install the plugin without Docker Desktop I was seeing the error "docker is not installed; refusing to install to '~/.docker/cli-plugins". After some investigation I realised that Docker Desktop creates the .docker folder, and that if I create the .docker folder manually the plugin can then be installed. Can the install script be updated to create the .docker folder if the user is not using Docker Desktop?

Why is this needed: Allows for installation of the plugin without Docker Desktop.

Luskidoo avatar Aug 02 '22 09:08 Luskidoo

I assume install.sh was tested on Mac with Docker Desktop installed. For Linux kinda OS, could be a check $OSTYPE with mkdir -p ~/.docker/cli-plugins . or push to dockerhub, then user can run docker plugin install sbom

zdtsw avatar Aug 16 '22 15:08 zdtsw

Experienced this problem on Nvidia Jetson TX2. Docker command line is definitely installed. Created $HOME/.docker and was able to run install.sh.

drjasonharrison avatar Aug 01 '23 22:08 drjasonharrison