You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ECS::Types::LinuxParameters

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing LinuxParameters as input to an Aws::Client method, you can use a vanilla Hash:

{
  capabilities: {
    add: ["String"],
    drop: ["String"],
  },
  devices: [
    {
      host_path: "String", # required
      container_path: "String",
      permissions: ["read"], # accepts read, write, mknod
    },
  ],
  init_process_enabled: false,
}

Linux-specific options that are applied to the container, such as Linux KernelCapabilities.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#capabilitiesTypes::KernelCapabilities

The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.

Returns:

  • (Types::KernelCapabilities)

    The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.

#devicesArray<Types::Device>

Any host devices to expose to the container. This parameter maps to Devices in the Create a container section of the Docker Remote API and the --device option to docker run.

Returns:

  • (Array<Types::Device>)

    Any host devices to expose to the container.

#init_process_enabledBoolean

Run an init process inside the container that forwards signals and reaps processes. This parameter maps to the --init option to docker run. This parameter requires version 1.25 of the Docker Remote API or greater on your container instance. To check the Docker Remote API version on your container instance, log in to your container instance and run the following command: sudo docker version | grep "Server API version"

Returns:

  • (Boolean)

    Run an init process inside the container that forwards signals and reaps processes.