Reputation: 4431
I installed the "docker dive" extension in VsCode. I aready had the Docker extension installed (which it requires). The docs say that Dive will run when an image is selected in the Docker extension images list. But that does not happen.
I entered "dive" in the command palette and "Docker:Dive" came up. I selected it and it displayed a list of my images for me to select one. When I did that, a new terminal window opened and tried to run dive my_image_name
.
Then Powershell displayed the error: dive : The term 'dive' is not recognized as the name of a cmdlet, ...
.
It's looking for "dive" in my PATH.
I'm confused. Docker Dive is an installed extension. Why should it also need it in my PATH? And if it really needs it, what is the path of the executable?
Upvotes: 0
Views: 924
Reputation: 12305
You need to install dive
first. Just check the repo and you should be ready to go github.com/wagoodman/dive
For Windows
users. From the releases page https://github.com/wagoodman/dive/releases/
you need to find the Assets
and download the windows
one. Like https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_windows_amd64.zip
You unzip the file and then you can create a folder on your C drive called dive
, like C:\dive
. Copy the executable dive.exe
intoC:\dive
Then you need to add that folder address into your PATH
. For that you need to go to
From there you click on Environment Variables
, then to System variables
; from there you click on the Path
variable and then on Edit
. On the Edit
window, add a new entry, with tyhe New
button; the add C:\dive
and click Ok
button.
Then close and re open Visual Studio Code
. Now the extension should work as intended.
Upvotes: 1