question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to manually create a DockerHostService instance

See original GitHub issue

Hi 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:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lorenzo93commented, Oct 7, 2018

@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!

0reactions
mariotoffiacommented, Oct 6, 2018

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found