How to manually create a DockerHostService instance
See original GitHub issueHi Mario,
sorry to still bother you… this time I have a bug found!!! I’m trying my software on linux (it is all created and executed with .NET Core) and I found a little problem.
I’ve attached the output of docker info here so you can have all the informations about my environment.
When I try to get all containers with the code provided below I get an empty list
DockerHostService host = new DockerHostService("local", true, dockerUri: "npipe://./pipe/docker_engine"); List<IContainerService> allcontainers = c.GetContainers().ToList();
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
docker service create
Creates a service as described by the specified parameters. ... This is a cluster management command, and must be executed on a swarm...
Read more >DockerCompose@0 - Docker Compose v0 task
To manually set up the connection, see Azure Resource Manager service connection. azureContainerRegistry - Azure Container Registry string .
Read more >Creating a Container Instance
In the Console, open the navigation menu and click Developer Services. Under Containers & Artifacts, click Container Instances. Click Create container instance.
Read more >Docker redis connect. The issue was with the backend's docke
and use it in the startup like: I am trying to set up redis and redis-commander in docker-compose. You should be in the...
Read more >Ocelot docker compose. Step 2. Create a docker-compose ...
Create a docker-compose. /openvpn-client i The docker-compose-file contains Ocelot and the hosted service which is scaled to 3 instances. 06 or later of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mariotoffia I’m sorry for anwsering so late, I had a rough week and I didn’t have time to properly test this changes. Using this line of code now everything works like should do.
var host = new Hosts().Native();Thank you very much for your help!
@lorenzo93 Hi, I’m closing this now since I haven’t heard anything. I also have tested this and it works for me. If you have any problem, please don’t hesitate to open a new or just file the problem in this issue.
Cheers, Mario