IContainerRuntime
Interface net8.0
Represents a container runtime (e.g., Docker, Podman) that can be used to build, tag, push, and manage container images.
namespace Aspire.Hosting.Publishing;
public interface IContainerRuntime{ // ...} 10 members
Properties1
Section titled PropertiesMethods9
Section titled MethodsBuildImageAsync(string, string, ContainerImageBuildOptions?, Dictionary<string, string?>, Dictionary<string, BuildImageSecretValue>, string?, CancellationToken)abstractTask Builds a container image from a Dockerfile.
CheckIfRunningAsync(CancellationToken)abstractTask<bool> Checks if the container runtime is running and available.
ComposeDownAsync(ComposeOperationContext, CancellationToken)abstractTask Stops and removes compose services.
ComposeListServicesAsync(ComposeOperationContext, CancellationToken)abstractTask<IReadOnlyList<ComposeServiceInfo>> Lists the running services in a compose environment with their port mappings.
ComposeUpAsync(ComposeOperationContext, CancellationToken)abstractTask Starts compose services in detached mode.
LoginToRegistryAsync(string, string, string, CancellationToken)abstractTask Logs in to a container registry.
PushImageAsync(IResource, CancellationToken)abstractTask Pushes a container image to a registry.
RemoveImageAsync(string, CancellationToken)abstractTask Removes a container image.
TagImageAsync(string, string, CancellationToken)abstractTask Tags a container image with a new name.