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
.NET SDK:
Version: 7.0.302
Commit: 990cf98a27
What version of Docker.DotNet?:
Latest Nuget
Steps to reproduce the issue:
private async Task<ContainerListResponse> GetContainerFromName(string containerName)
{
var containers = await new DockerClientConfiguration().CreateClient().Containers.ListContainersAsync(
new ContainersListParameters { All = true }
);
var container = containers.FirstOrDefault(c => c.Names.Contains(containerName));
return container;
}
public async Task<IActionResult> StartContainer(string container)
{
var containerObj = await GetContainerFromName(container);
var i = await new DockerClientConfiguration().CreateClient().Containers.InspectContainerAsync(containerObj.ID);
Or Any other Linq Query What actually happened?:*
Sequence is Empty
What did you expect to happen?:
To be able to retrieve the First or really any container from the IList with query or somehow to be able to get .ID for StartAsync
var start = await new DockerClientConfiguration().CreateClient().Containers.StartContainerAsync(containerObj.ID, new ContainerStartParameters());
I'm trying to get a single container followed by its ID from name.Is there some way to easily achieve this, which I'm missing out on? I couldn't deduce anything off of the documentation available in the repo. Thanks in Advance.
The text was updated successfully, but these errors were encountered:
I am unable to recreate the issue. I am receiving the created containers. Is the variable containers empty, or does it simply not contain the container with the expected name?
Output of dotnet --info:
.NET SDK:
Version: 7.0.302
Commit: 990cf98a27
What version of Docker.DotNet?:
Latest Nuget
Steps to reproduce the issue:
Or Any other Linq Query
What actually happened?:*
Sequence is Empty
What did you expect to happen?:
To be able to retrieve the First or really any container from the IList with query or somehow to be able to get .ID for StartAsync
I'm trying to get a single container followed by its ID from name.Is there some way to easily achieve this, which I'm missing out on? I couldn't deduce anything off of the documentation available in the repo. Thanks in Advance.
The text was updated successfully, but these errors were encountered: