Class ContainerConfig
Configuration for creating a container. Mutable to allow fluent configuration pattern.
public class ContainerConfig
- Inheritance
-
ContainerConfig
- Inherited Members
Properties
Environment
Environment variables to set in the container. These are passed to the docker run command via -e flags.
public Dictionary<string, string> Environment { get; set; }
Property Value
Image
Docker image to use. Must be set by the caller. The CLI defaults to ubuntu:22.04 if not specified via --image or Options.UseImage().
public required string Image { get; set; }
Property Value
LocalProjectRoot
Local project root for file operations (tar, directory checks). In normal mode, this equals ProjectRoot. In DinD mode, this is the actual path inside the current container (e.g., /workspace) while ProjectRoot is the host path for Docker mounts.
public string? LocalProjectRoot { get; set; }
Property Value
MountDockerSocket
Whether to mount Docker socket for Docker-in-Docker support. Enable this for builds that create Docker images.
public bool MountDockerSocket { get; set; }
Property Value
Name
Container name. Used for warm container lookup and cleanup.
public string Name { get; set; }
Property Value
ProjectRoot
Project root directory for Docker volume mounts. In DinD mode, this is the HOST filesystem path that the Docker daemon uses for volume mounts.
public required string ProjectRoot { get; set; }
Property Value
Methods
GetLocalProjectRoot()
Gets the path to use for local file operations.
public string GetLocalProjectRoot()