public static interface LinuxParameters.Builder extends CopyableBuilder<LinuxParameters.Builder,LinuxParameters>
Modifier and Type | Method and Description |
---|---|
default LinuxParameters.Builder |
capabilities(Consumer<KernelCapabilities.Builder> capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided
by Docker.
|
LinuxParameters.Builder |
capabilities(KernelCapabilities capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided
by Docker.
|
LinuxParameters.Builder |
devices(Collection<Device> devices)
Any host devices to expose to the container.
|
LinuxParameters.Builder |
devices(Device... devices)
Any host devices to expose to the container.
|
LinuxParameters.Builder |
initProcessEnabled(Boolean initProcessEnabled)
Run an
init process inside the container that forwards signals and reaps processes. |
copy
apply, build
LinuxParameters.Builder capabilities(KernelCapabilities capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
capabilities
- The Linux capabilities for the container that are added to or dropped from the default configuration
provided by Docker.default LinuxParameters.Builder capabilities(Consumer<KernelCapabilities.Builder> capabilities)
The Linux capabilities for the container that are added to or dropped from the default configuration provided by Docker.
This is a convenience that creates an instance of theKernelCapabilities.Builder
avoiding the need to
create one manually via KernelCapabilities.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to capabilities(KernelCapabilities)
.capabilities
- a consumer that will call methods on KernelCapabilities.Builder
capabilities(KernelCapabilities)
LinuxParameters.Builder devices(Collection<Device> devices)
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.
devices
- 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.LinuxParameters.Builder devices(Device... devices)
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.
devices
- 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.LinuxParameters.Builder initProcessEnabled(Boolean initProcessEnabled)
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 into your container instance and run the following command:
sudo docker version | grep "Server API version"
initProcessEnabled
- 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 into your container instance and run the following command:
sudo docker version | grep "Server API version"
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.