Class CreateContainerRequest
- Namespace
- Bielu.Microservices.Orchestrator.Models
- Assembly
- Bielu.Microservices.Orchestrator.dll
Request to create a new container.
public class CreateContainerRequest
- Inheritance
-
CreateContainerRequest
- Inherited Members
- Extension Methods
Properties
AutoRemove
Whether to automatically remove the container when it stops.
public bool AutoRemove { get; set; }
Property Value
Command
The command to run in the container.
public IList<string>? Command { get; set; }
Property Value
EnvironmentVariables
Environment variables for the container.
public IDictionary<string, string> EnvironmentVariables { get; set; }
Property Value
Image
The image to use for the container.
public string Image { get; set; }
Property Value
Labels
Labels for the container.
public IDictionary<string, string> Labels { get; set; }
Property Value
MaxRestartRetries
Maximum number of restart attempts when RestartPolicy is OnFailure. Zero means unlimited retries.
public int MaxRestartRetries { get; set; }
Property Value
Name
The name for the container.
public string? Name { get; set; }
Property Value
Networks
List of network attachments for the container.
public IList<NetworkAttachment> Networks { get; set; }
Property Value
Ports
Port mappings for the container.
public IList<PortMapping> Ports { get; set; }
Property Value
Replicas
The number of container instances to create (default is 1). When greater than 1, each container is named with a numeric suffix (e.g., my-app-0, my-app-1).
public int Replicas { get; set; }
Property Value
RestartPolicy
Restart policy for the container. Defaults to No.
public RestartPolicy RestartPolicy { get; set; }
Property Value
Volumes
Volume mounts that map host paths (or named volumes) into the container.
public IList<VolumeMount> Volumes { get; set; }