Hacker News new | ask | show | jobs
by sebazzz 1219 days ago
Problem for developers in the Microsoft stack is that Visual Studio requires Docker Desktop to be installed - unless Rancher is able to fake that.
2 comments

> Problem for developers in the Microsoft stack is that Visual Studio requires Docker Desktop to be installed

I'm not sure what you are referring to here. I run Docker engine in WSL2, and vscode in Windows. It all seems to work seemlessly to me. What am I missing?

Visual Studio is not vscode.
How do you interact with Visual Studio and Docker? I'll see what I can come up with.
There are two facets to this:

- It calls Docker (docker command) to build and run images

- Visual Studio has an UI to manage containers and images (not sure what it uses under the hood for this)

So by doing what I said I have `docker` in Powershell.

To recap, I have the following:

Docker (CLI ONLY!!!) on Ubuntu on WSL as described here: https://docs.docker.com/engine/install/ubuntu/

   sudo apt list --installed 2>&1 | grep docker
  docker-buildx-plugin/kinetic,now 0.10.2-1~ubuntu.22.10~kinetic amd64 [installed,automatic]
  docker-ce-cli/kinetic,now 5:23.0.0-1~ubuntu.22.10~kinetic amd64 [installed]
  docker-compose-plugin/kinetic,now 2.15.1-1~ubuntu.22.10~kinetic amd64 [installed,automatic]
  docker-compose/kinetic,now 1.29.2-2 all [installed]
  docker-scan-plugin/kinetic,now 0.23.0~ubuntu-kinetic amd64 [installed,automatic]
  python3-docker/kinetic,now 5.0.3-1 all [installed,automatic]
  python3-dockerpty/kinetic,now 0.4.1-4 all [installed,automatic]
So I'd say start with installing

  docker-ce-cli

Rancher Desktop from here: https://github.com/rancher-sandbox/rancher-desktop/releases

Then in Rancher Desktop you enable WSL integration as shown here: https://imgur.com/a/yKV8S9e

With this done you should be able to have the docker command in Pwsh

I can do docker image ls etc like a full Docker setup!