You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the Fluent Docker library to run Redis and SQL Server as part of the startup of my integration tests locally on Windows machines.
This approach worked fine until I installed the Docker Engine as part of the Docker Desktop installation.
My requirements have changed: I can no longer use Docker Desktop for license reasons.
My first approach was to use some Docker alternatives like Rancher Desktop, but unfortunately, this has several limitations: Rancher Desktop needs to run as an Administrator on Windows to fully support networking between containers; every client interacting with the Docker engine installed with Rancher needs to run with high privileges.
I decided not to use Rancher Desktop and manually install the Docker Engine and the Docker Compose service on Windows WSL2. I followed the instructions provided by Docker at https://docs.docker.com/engine/install/ubuntu/?ref=paulsblog.dev, but I have some issues now with the Fluent Docker library when it comes to getting the list of available hosts.
The class "Ductus.FluentDocker.Services.Hosts" provides a convenient method "Discover" which should return a collection of IHostedServices.
When I run this method now on my new local environment, I get the following exception: "Ductus.FluentDocker.Common.FluentDockerException : Failed to find docker client binary - please add it to your path".
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using the Fluent Docker library to run Redis and SQL Server as part of the startup of my integration tests locally on Windows machines.
This approach worked fine until I installed the Docker Engine as part of the Docker Desktop installation.
My requirements have changed: I can no longer use Docker Desktop for license reasons.
My first approach was to use some Docker alternatives like Rancher Desktop, but unfortunately, this has several limitations: Rancher Desktop needs to run as an Administrator on Windows to fully support networking between containers; every client interacting with the Docker engine installed with Rancher needs to run with high privileges.
I decided not to use Rancher Desktop and manually install the Docker Engine and the Docker Compose service on Windows WSL2. I followed the instructions provided by Docker at https://docs.docker.com/engine/install/ubuntu/?ref=paulsblog.dev, but I have some issues now with the Fluent Docker library when it comes to getting the list of available hosts.
The class "Ductus.FluentDocker.Services.Hosts" provides a convenient method "Discover" which should return a collection of IHostedServices.
When I run this method now on my new local environment, I get the following exception: "Ductus.FluentDocker.Common.FluentDockerException : Failed to find docker client binary - please add it to your path".
Has anyone attempted something similar before?
Beta Was this translation helpful? Give feedback.
All reactions