Category : rm

I am using a C# API that talks to DockerEngine (Docker.DotNet) to do some things, but notably in this case, removed a stopped container. Here is my code: foreach (var container in RunningContainers) { if (container.State == "dead" || container.State == "exited") { long exitType = Client.Containers.InspectContainerAsync(container.ID).Result.State.ExitCode; if (exitType != 0) { badExitCodeCount++; } Client.Containers.RemoveContainerAsync(container.ID, ..

Read more