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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-ecs/types.rb

Overview

Note:

When making an API call, you may pass LinuxParameters data as a hash:

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

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

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.

<note markdown=“1”> If you are using tasks that use the Fargate launch type, ‘capabilities` is supported but the `add` parameter is not supported.

</note>


2548
2549
2550
2551
2552
2553
2554
2555
# File 'lib/aws-sdk-ecs/types.rb', line 2548

class LinuxParameters < Struct.new(
  :capabilities,
  :devices,
  :init_process_enabled,
  :shared_memory_size,
  :tmpfs)
  include Aws::Structure
end

#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].

<note markdown=“1”> If you are using tasks that use the Fargate launch type, the ‘devices` parameter is not supported.

</note>

[1]: docs.docker.com/engine/reference/api/docker_remote_api_v1.27/#create-a-container [2]: docs.docker.com/engine/reference/api/docker_remote_api_v1.27/ [3]: docs.docker.com/engine/reference/run/

Returns:



2548
2549
2550
2551
2552
2553
2554
2555
# File 'lib/aws-sdk-ecs/types.rb', line 2548

class LinuxParameters < Struct.new(
  :capabilities,
  :devices,
  :init_process_enabled,
  :shared_memory_size,
  :tmpfs)
  include Aws::Structure
end

#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”`

[1]: docs.docker.com/engine/reference/run/

Returns:

  • (Boolean)


2548
2549
2550
2551
2552
2553
2554
2555
# File 'lib/aws-sdk-ecs/types.rb', line 2548

class LinuxParameters < Struct.new(
  :capabilities,
  :devices,
  :init_process_enabled,
  :shared_memory_size,
  :tmpfs)
  include Aws::Structure
end

#shared_memory_sizeInteger

The value for the size of the ‘/dev/shm` volume. This parameter maps to the `–shm-size` option to [docker run].

[1]: docs.docker.com/engine/reference/run/

Returns:

  • (Integer)


2548
2549
2550
2551
2552
2553
2554
2555
# File 'lib/aws-sdk-ecs/types.rb', line 2548

class LinuxParameters < Struct.new(
  :capabilities,
  :devices,
  :init_process_enabled,
  :shared_memory_size,
  :tmpfs)
  include Aws::Structure
end

#tmpfsArray<Types::Tmpfs>

The container path, mount options, and size of the tmpfs mount. This parameter maps to the ‘–tmpfs` option to [docker run].

[1]: docs.docker.com/engine/reference/run/

Returns:



2548
2549
2550
2551
2552
2553
2554
2555
# File 'lib/aws-sdk-ecs/types.rb', line 2548

class LinuxParameters < Struct.new(
  :capabilities,
  :devices,
  :init_process_enabled,
  :shared_memory_size,
  :tmpfs)
  include Aws::Structure
end