Table of Contents

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

bool

Command

The command to run in the container.

public IList<string>? Command { get; set; }

Property Value

IList<string>

EnvironmentVariables

Environment variables for the container.

public IDictionary<string, string> EnvironmentVariables { get; set; }

Property Value

IDictionary<string, string>

Image

The image to use for the container.

public string Image { get; set; }

Property Value

string

Labels

Labels for the container.

public IDictionary<string, string> Labels { get; set; }

Property Value

IDictionary<string, string>

MaxRestartRetries

Maximum number of restart attempts when RestartPolicy is OnFailure. Zero means unlimited retries.

public int MaxRestartRetries { get; set; }

Property Value

int

Name

The name for the container.

public string? Name { get; set; }

Property Value

string

Networks

List of network attachments for the container.

public IList<NetworkAttachment> Networks { get; set; }

Property Value

IList<NetworkAttachment>

Ports

Port mappings for the container.

public IList<PortMapping> Ports { get; set; }

Property Value

IList<PortMapping>

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

int

RestartPolicy

Restart policy for the container. Defaults to No.

public RestartPolicy RestartPolicy { get; set; }

Property Value

RestartPolicy

Volumes

Volume mounts that map host paths (or named volumes) into the container.

public IList<VolumeMount> Volumes { get; set; }

Property Value

IList<VolumeMount>