jfrog / jfrog-docker-desktop-extension

🐸 Scans any of your local Docker images for security vulnerabilities. 🐋
74 stars 13 forks source link

Failed running command due to docker executable not found #92

Closed aquacode closed 1 year ago

aquacode commented 1 year ago

I am able to run jf docker scan on command line, docker desktop seems to run fine as I'm able to run many other containers, etc.

However, using Docker Desktop with JFrog extension I am getting the following error:

09:37:38 [Error] failed running command ... with error: exec: "docker": executable file not found in $PATH

Yet, docker runs on my command line find and the path to it is included in my $PATH variable.

macOS Ventura 13.3.1 Apple M2 Max Docker Desktop v4.19.0 JFrog extension v1.2.1 Xray Version: 3.73.5 CLI Version: 2.25.1

thechane commented 1 year ago

I too am unable to scan images from the docker-desktop extension.

macOS Ventura 13.3.1 Apple M1 Pro Docker Desktop v4.19.0 Docker Desktop v4.19.0 JFrog extension v1.2.1 Xray Version: 3.65.2 CLI Version: 2.25.1

$cd ~/.jfrog-docker-desktop-extension/logs $ ls -l total 16 -rw-r--r--@ 1 DT237812 staff 1056 May 19 08:00 jfrog-docker-desktop-extension.2023-05-19.08-00.log -rw-r--r--@ 1 DT237812 staff 288 May 19 08:02 jfrog-docker-desktop-extension.2023-05-19.08-02.log $ cat jfrog-docker-desktop-extension.2023-05-19.08-02.log 08:02:47 [Info] Creating image archive... 08:02:47 [Error] failed running command: 'docker save scheduler:latest -o /var/folders/lm/qlg035jn4hj79cjzmyn1rt3h0000gs/T/jfrog.cli.temp.-1684501367-1165298289/image.tar' with error: exec: "docker": executable file not found in $PATH - $ which docker /usr/local/bin/docker $ echo $PATH | grep -q :/usr/local/bin: $ echo $? 0

sverdlov93 commented 1 year ago

Hi @aquacode and @thechane Thanks for reporting this issue. Our apologies for the inconvenience caused by this bug. The issue was caused by Docker Desktop version and the next Docker Desktop version should fix that.

aquacode commented 1 year ago

Works after updating Docker Desktop to version 4.20