ContainerCleanupResult Class

What a cleanup removed, and what it could not remove.

public sealed class ContainerCleanupResult

Properties

NameDescription
ErrorsGets the failures met while removing the resources. A cleanup does not stop on the first failure, so a resource that cannot be removed does not keep the others alive.
RemovedContainersGets the ids of the removed containers.
RemovedCountGets the total number of removed resources.
RemovedImagesGets the ids of the removed images: the images built from a Dockerfile.
RemovedNetworksGets the names of the removed networks.
RemovedVolumesGets the names of the removed volumes.

Gets the failures met while removing the resources. A cleanup does not stop on the first failure, so a resource that cannot be removed does not keep the others alive.

public IReadOnlyList<Exception> Errors { get; }

RemovedContainers

ContainerCleanupResult.cs

Gets the ids of the removed containers.

public IReadOnlyList<string> RemovedContainers { get; }

Property value

IReadOnlyList<string>

Gets the total number of removed resources.

public int RemovedCount { get; }

Property value

int

Gets the ids of the removed images: the images built from a Dockerfile.

public IReadOnlyList<string> RemovedImages { get; }

Property value

IReadOnlyList<string>

Gets the names of the removed networks.

public IReadOnlyList<string> RemovedNetworks { get; }

Property value

IReadOnlyList<string>

Gets the names of the removed volumes.

public IReadOnlyList<string> RemovedVolumes { get; }

Property value

IReadOnlyList<string>