https://rancher.com/ logo
Title
w

witty-honey-18052

07/25/2022, 3:15 PM
Just a sanity check, buildx and scan are missing from my local RD (1.4.1):
Invalid Plugins:
  buildx      failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-buildx: no such file or directory
  scan        failed to fetch metadata: fork/exec /usr/local/lib/docker/cli-plugins/docker-scan: no such file or directory

:~/.docker/cli-plugins$ ls
docker-compose
From tracking through the github issues, this looks like it should be downloaded and installed automatically. On the two machines I checked with 1.4.1, it isn't. Should it be?
It's in powershell but not in WSL terminals
Another sanity check here:
C:\code [main ≡ +0 ~2 -0 !]> docker buildx version
<http://github.com/docker/buildx|github.com/docker/buildx> v0.7.1 05846896d149da05f3d6fd1e7770da187b52a247
C:\code [main ≡ +0 ~2 -0 !]> docker-buildx version
<http://github.com/docker/buildx|github.com/docker/buildx> v0.8.2 6224def4dd2c3d347eee19db595348c50d7cb491
Is it a bug/issue how the hyphenated command has a different version?
j

jolly-forest-99711

07/25/2022, 11:25 PM
I see you (assuming it was you) created https://github.com/rancher-sandbox/rancher-desktop/issues/2622 for this. That was a good call - I took a look at the code and there is nothing I see that would put
docker-buildx
in WSL distros. We should definitely have this! Regarding the differing versions of
docker buildx
and
docker-buildx
, I see the same thing on my Windows install. I had thought that the only place the docker CLI would pick plugins up from was
~/.docker/cli-plugins
, but I'm clearly wrong because I don't see anything in this directory, and yet I can call
docker buildx
w

witty-honey-18052

07/25/2022, 11:25 PM
yup! that was me
j

jolly-forest-99711

07/25/2022, 11:26 PM
But yeah these are definitely bugs, we will get to them when we have cycles for it. PRs are always welcome too :)
w

witty-honey-18052

07/25/2022, 11:26 PM
I need features in 0.8.1+, and I was pulling my hair out trying to figure out why they seemingly weren't available, despite the references to 0.8.2 in the install scripts
j

jolly-forest-99711

07/25/2022, 11:28 PM
I see. I don't think there is anything preventing you from manually installing the versions you need. I believe all of our code is written to not overwrite versions of programs that are already there. Worst case scenario you could put the versions in a directory in your
PATH
that takes precedence
w

witty-honey-18052

07/25/2022, 11:28 PM
that's what was crazy to me about the 0.7.1 vs 0.8.2 thing. I did completely fresh installs from scratch and it still came up that way
tracked the 0.8.2 back through the install scripts, but it just haven't had enough exposure to that side of the house to identify what's missing
i'm guessing there's some duplication that I can follow here for buildx
j

jolly-forest-99711

07/26/2022, 3:47 PM
Yeah that's the code. It seems it never was written for
docker-buildx
. We should probably make it generic, since I believe there are plans to integrate more docker CLI plugins