Amazon Elastic Container Service TaskDefinition LinuxParameters
The
LinuxParameters property type specifies Linux-specific options to apply to an
Amazon Elastic Container Service (Amazon ECS) container.
LinuxParameters is a property of the Amazon Elastic Container Service TaskDefinition ContainerDefinition property type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Capabilities" : KernelCapabilities, "Devices" : [ Device, ... ], "InitProcessEnabled" :Boolean, "SharedMemorySize" :Integer, "Tmpfs" : [ Tmpfs, ... ] }
YAML
Capabilities: KernelCapabilities Devices: - Device InitProcessEnabled:BooleanSharedMemorySize:StringTmpfs: - Tmpfs
Properties
Capabilities-
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
Required: No
Type: KernelCapabilities
Update requires: Replacement
Devices-
Any host devices to expose to the container. This maps to
Devicesin the Create a container section of the Docker Remote API and the--deviceoption to docker run.Required: No
Type: List of Device property types
Update requires: Replacement
InitProcessEnabled-
Indicates whether to run an
initprocess inside the container that forwards signals and reaps processes. This maps to the--initoption to docker run.This property requires at least version 1.25 of the Docker Remote API on your container instance. To check the API version on your container instance, log in to your container instance and run the following command:
sudo docker version | grep "Server API version"Required: No
Type: Boolean
Update requires: Replacement
SharedMemorySize-
The value for the size (in MiB) of the
/dev/shmvolume. This parameter maps to the--shm-sizeoption to docker run.Note
If you are using tasks that use the Fargate launch type,
SharedMemorySizeis not supported.Required: No
Type: Integer
Update requires: Replacement
Tmpfs-
The container path, mount options, and size (in MiB) of the tmpfs mount. This parameter maps to the
--tmpfsoption to docker run.Note
If you are using tasks that use the Fargate launch type,
Tmpfsis not supported.Required: No
Type: List of Tmpfs property types
Update requires: Replacement
See Also
-
LinuxParameters in the Amazon Elastic Container Service API Reference
