Skip to content

ECS  >  Structures  >  DaemonContainerDefinition

DaemonContainerDefinition

Structure Class

DaemonContainerDefinition dataclass

Bases: _SerdeShape

A container definition for a daemon task. Daemon container definitions describe the containers that run as part of a daemon task on container instances managed by capacity providers.

Attributes

command class-attribute instance-attribute
command: list[str] | None = ...

The command that's passed to the container.

cpu class-attribute instance-attribute
cpu: int = ...

The number of cpu units reserved for the container.

depends_on class-attribute instance-attribute
depends_on: list[ContainerDependency] | None = ...

The dependencies defined for container startup and shutdown. A container can contain multiple dependencies on other containers in a task definition.

entry_point class-attribute instance-attribute
entry_point: list[str] | None = ...

The entry point that's passed to the container.

environment class-attribute instance-attribute
environment: list[KeyValuePair] | None = ...

The environment variables to pass to a container.

environment_files class-attribute instance-attribute
environment_files: list[EnvironmentFile] | None = ...

A list of files containing the environment variables to pass to a container.

essential class-attribute instance-attribute
essential: bool | None = ...

If the essential parameter of a container is marked as true, and that container fails or stops for any reason, all other containers that are part of the task are stopped.

firelens_configuration class-attribute instance-attribute
firelens_configuration: FirelensConfiguration | None = ...

The FireLens configuration for the container. This is used to specify and configure a log router for container logs.

health_check class-attribute instance-attribute
health_check: HealthCheck | None = ...

The container health check command and associated configuration parameters for the container.

image instance-attribute
image: str

The image used to start the container. This string is passed directly to the Docker daemon. Images in the Docker Hub registry are available by default. Other repositories are specified with either repository-url/image:tag or repository-url/image@digest.

interactive class-attribute instance-attribute
interactive: bool | None = ...

When this parameter is true, you can deploy containerized applications that require stdin or a tty to be allocated.

linux_parameters class-attribute instance-attribute
linux_parameters: DaemonLinuxParameters | None = ...

Linux-specific modifications that are applied to the container configuration, such as Linux kernel capabilities.

log_configuration class-attribute instance-attribute
log_configuration: LogConfiguration | None = ...

The log configuration specification for the container.

memory class-attribute instance-attribute
memory: int | None = ...

The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is killed.

memory_reservation class-attribute instance-attribute
memory_reservation: int | None = ...

The soft limit (in MiB) of memory to reserve for the container.

mount_points class-attribute instance-attribute
mount_points: list[MountPoint] | None = ...

The mount points for data volumes in your container.

name class-attribute instance-attribute
name: str | None = ...

The name of the container. Up to 255 letters (uppercase and lowercase), numbers, underscores, and hyphens are allowed.

privileged class-attribute instance-attribute
privileged: bool | None = ...

When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user).

pseudo_terminal class-attribute instance-attribute
pseudo_terminal: bool | None = ...

When this parameter is true, a TTY is allocated.

readonly_root_filesystem class-attribute instance-attribute
readonly_root_filesystem: bool | None = ...

When this parameter is true, the container is given read-only access to its root file system.

repository_credentials class-attribute instance-attribute
repository_credentials: RepositoryCredentials | None = ...

The private repository authentication credentials to use.

restart_policy class-attribute instance-attribute
restart_policy: ContainerRestartPolicy | None = ...

The restart policy for the container. When you set up a restart policy, Amazon ECS can restart the container without needing to replace the task.

secrets class-attribute instance-attribute
secrets: list[Secret] | None = ...

The secrets to pass to the container.

start_timeout class-attribute instance-attribute
start_timeout: int | None = ...

Time duration (in seconds) to wait before giving up on resolving dependencies for a container.

stop_timeout class-attribute instance-attribute
stop_timeout: int | None = ...

Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own.

system_controls class-attribute instance-attribute
system_controls: list[SystemControl] | None = ...

A list of namespaced kernel parameters to set in the container.

ulimits class-attribute instance-attribute
ulimits: list[Ulimit] | None = ...

A list of ulimits to set in the container.

user class-attribute instance-attribute
user: str | None = ...

The user to use inside the container.

working_directory class-attribute instance-attribute
working_directory: str | None = ...

The working directory to run commands inside the container in.