Builder

class Builder

Properties

Link copied to clipboard

The command that is passed to the container.

Link copied to clipboard
var cpu: Int?

The number of CPU units reserved for the container.

Link copied to clipboard

The dependencies that are defined for container startup and shutdown.

Link copied to clipboard

Whether to disable networking within the container.

Link copied to clipboard

A list of DNS search domains that are presented to the container.

Link copied to clipboard

A list of DNS servers that are presented to the container.

Link copied to clipboard

A key-value map of labels to add to the container.

Link copied to clipboard

A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems.

Link copied to clipboard

The entry point that is passed to the container.

Link copied to clipboard

The environment variables to pass to a container.

Link copied to clipboard

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

Link copied to clipboard

Whether the container is essential. All tasks must have at least one essential container.

Link copied to clipboard

A list of hostnames and IP address mappings to append to the /etc/hosts file on the container.

Link copied to clipboard

The FireLens configuration for the container. Specifies and configures a log router for container logs.

Link copied to clipboard

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

Link copied to clipboard

The hostname to use for the container.

Link copied to clipboard

The image used to start the container.

Link copied to clipboard

If set to true, then containerized applications can be deployed that require stdin or a tty to be allocated.

Link copied to clipboard

A list of links for the container in the form <i>container_name</i>:<i>alias</i> . Allows containers to communicate with each other without the need for port mappings.

Link copied to clipboard

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

Link copied to clipboard

The log configuration specification for the container.

Link copied to clipboard
var memory: Int?

The amount (in MiB) of memory to present to the container. If the container attempts to exceed the memory specified here, the container is shut down. The total amount of memory reserved for all containers within a task must be lower than the task memory value, if one is specified.

Link copied to clipboard

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

Link copied to clipboard

The mount points for the data volumes in the container.

Link copied to clipboard
var name: String?

The name of the container.

Link copied to clipboard

The list of port mappings for the container.

Link copied to clipboard

Whether the container is given elevated privileges on the host container instance. The elevated privileges are similar to the root user.

Link copied to clipboard

Whether to allocate a TTY to the container.

Link copied to clipboard

Whether the container is given read-only access to its root file system.

Link copied to clipboard

The private repository authentication credentials to use.

Link copied to clipboard

The type and amount of a resource to assign to a container. The only supported resource is a GPU.

Link copied to clipboard

The secrets to pass to the container.

Link copied to clipboard

The number of seconds to wait before giving up on resolving dependencies for a container.

Link copied to clipboard

The number of seconds to wait before the container is stopped if it doesn't shut down normally on its own.

Link copied to clipboard

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

Link copied to clipboard

A list of ulimits to set in the container.

Link copied to clipboard
var user: String?

The user to use inside the container.

Link copied to clipboard

Data volumes to mount from another container.

Link copied to clipboard

The working directory in which to run commands inside the container.

Functions