DaemonContainerDefinition - Amazon Elastic Container Service

DaemonContainerDefinition

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.

Contents

image

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 .

Type: String

Required: Yes

command

The command that's passed to the container.

Type: Array of strings

Required: No

cpu

The number of cpu units reserved for the container.

Type: Integer

Required: No

dependsOn

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

Type: Array of ContainerDependency objects

Required: No

entryPoint

The entry point that's passed to the container.

Type: Array of strings

Required: No

environment

The environment variables to pass to a container.

Type: Array of KeyValuePair objects

Required: No

environmentFiles

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

Type: Array of EnvironmentFile objects

Required: No

essential

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.

Type: Boolean

Required: No

firelensConfiguration

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

Type: FirelensConfiguration object

Required: No

healthCheck

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

Type: HealthCheck object

Required: No

interactive

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

Type: Boolean

Required: No

linuxParameters

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

Type: DaemonLinuxParameters object

Required: No

logConfiguration

The log configuration specification for the container.

Type: LogConfiguration object

Required: No

memory

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.

Type: Integer

Required: No

memoryReservation

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

Type: Integer

Required: No

mountPoints

The mount points for data volumes in your container.

Type: Array of MountPoint objects

Required: No

name

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

Type: String

Required: No

privileged

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

Type: Boolean

Required: No

pseudoTerminal

When this parameter is true, a TTY is allocated.

Type: Boolean

Required: No

readonlyRootFilesystem

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

Type: Boolean

Required: No

repositoryCredentials

The private repository authentication credentials to use.

Type: RepositoryCredentials object

Required: No

restartPolicy

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.

Type: ContainerRestartPolicy object

Required: No

secrets

The secrets to pass to the container.

Type: Array of Secret objects

Required: No

startTimeout

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

Type: Integer

Required: No

stopTimeout

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

Type: Integer

Required: No

systemControls

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

Type: Array of SystemControl objects

Required: No

ulimits

A list of ulimits to set in the container.

Type: Array of Ulimit objects

Required: No

user

The user to use inside the container.

Type: String

Required: No

workingDirectory

The working directory to run commands inside the container in.

Type: String

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: