-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Docker Host does not work #1650
Comments
FYI, the reason I'm doing this is because I'm trying to run Visual Studio on my M2 Mac Studio on Windows ARM VM in Parallels and use Docker Desktop host on my Mac because I can't install docker desktop on Windows because I can't enable nested virtualization on Apple Silicon and therefore no Hyper-V and therefore no Docker Desktop on Windows ARM VM. If there is a workaround to get this working, I'm happy to try another way. |
You can see I tried vscode on my Mac directly and it seems while I can run things, debugging does not appear to be working. |
Not sure if we can get to this investigation in the near term to support Docker running on a remote host. I think that VS Code once it is supported will probably be the better solution for this. |
Any news on this? I run docker directly on wsl2 without using docker desktop and can't use aspire for this... I see in the source that aspire look for docker desktop executable instead of referencing DOCKER_HOST environment variable as other libraries do (ex. testcontainer) |
We do depend on Docker CLI (or Podman CLI) being available on the path, but it doesn't have to specifically be Docker Desktop for Windows. Docker publishes builds of the Docker binaries or you can use a package manager such as winget or Chocolatey to install the Docker CLI. |
Thanks for the hint, il give it a try. |
i installed docker cli with winget and I can connect to the remote docker engine (my setup is docker engine running on wsl2 without docker desktop) but aspire is still not working:
but the docker executable is in %PATH%.
|
Mostly to avoid a lot of headaches with authentication/access to remote endpoints; the endpoint could be a named pipe, a unix domain socket, http(s), or even SSH, plus it (hopefully) is protected with certificates or other credentials, which would also need to be configured. Since Docker (or Podman) have already abstracted away all those connection details for us, it ends up easier to depend on the CLI (plus it has the added bonus of guaranteeing that any commands we run, the user can run the same command from the CLI and get the same results). As for not finding |
I get the same error as giammin above related to docker: Tried restart everything but still same error. When typing |
in my case after updating all the aspire requirements and a reboot the issue disappeared. |
My docker host is set to
DOCKER_HOST=tcp://10.211.55.2:12675
When I try the starter app it's unable to connect to redis because it's expecting it to be on localhost I think but it's not, it's on the custom host.
The text was updated successfully, but these errors were encountered: