command |
The command that is passed to the container. |
list(string) |
null |
no |
cpu |
The number of cpu units reserved for the container. |
number |
0 |
no |
depend_on |
The dependencies defined for container startup and shutdown. |
map(string) |
{} |
no |
disable_networking |
When this parameter is true, networking is disabled within the container. |
bool |
null |
no |
dns_search_domains |
A list of DNS search domains that are presented to the container. |
list(string) |
null |
no |
dns_servers |
A list of DNS servers that are presented to the container. |
list(string) |
null |
no |
docker_labels |
A key/value map of labels to add to the container. |
map(string) |
null |
no |
docker_security_options |
A list of strings to provide custom labels for SELinux and AppArmor multi-level security systems. |
list(string) |
null |
no |
entrypoint |
The entry point that is passed to the container. |
list(string) |
null |
no |
environment |
The environment variables to pass to a container. |
map(string) |
{} |
no |
environment_files |
The environment files to pass to a container. |
list(string) |
[] |
no |
essential |
Whether this container is essential to the task. If the container fails or stops for any reason, all other containers that are part of the task are stopped. |
bool |
true |
no |
extra_hosts |
A list of hostnames and IP address mappings to append to the /etc/hosts file on the container. |
map(string) |
{} |
no |
firelens_configuration |
The FireLens configuration for the container. |
object({ type = string options = optional(map(string)) }) |
null |
no |
healthcheck |
The container health check command and associated configuration parameters for the container. |
object({ command = list(string) interval = optional(number) retries = optional(number) start_period = optional(number) timeout = optional(number) }) |
null |
no |
hostname |
The hostname to use for your container. |
string |
null |
no |
image |
The image used to start the container. |
string |
n/a |
yes |
interactive |
When this parameter is true, the container is given read-only access to its root file system. |
bool |
null |
no |
links |
Links to other containers. |
list(string) |
null |
no |
linux_parameters |
Linux-specific modifications that are applied to the container, such as Linux kernel capabilities. |
object({ init_process_enabled = optional(bool)
shared_memory_size = optional(number) max_swap = optional(number) swappiness = optional(number)
capabilities = optional(object({ add = optional(list(string)) drop = optional(list(string)) }))
devices = optional(list(object({ host_path = string container_path = optional(string) permissions = optional(list(string)) })), [])
tmpfs = optional(list(object({ container_path = string size = number mount_options = optional(list(string)) })), []) }) |
null |
no |
log_configuration |
The log configuration specification for the container. |
object({ log_driver = optional(string) options = optional(map(string)) secret_options = optional(map(string)) }) |
null |
no |
memory |
The hard limit (in MiB) of memory to present to the container. |
number |
null |
no |
memory_reservation |
The soft limit (in MiB) of memory to reserve for the container. |
number |
null |
no |
mount_points |
The mount points for data volumes in your container. |
list(object({ source_volume = string container_path = string read_only = optional(bool, false) })) |
[] |
no |
name |
The name of the container. |
string |
n/a |
yes |
port_mappings |
The list of port mappings for the container. |
list(object({ app_protocol = optional(string) container_port_range = optional(string)
container_port = optional(number) host_port = optional(number) protocol = optional(string, "tcp") })) |
[] |
no |
privileged |
When this parameter is true, the container is given elevated privileges on the host container instance (similar to the root user). |
bool |
null |
no |
pseudo_terminal |
When this parameter is true, a TTY is allocated. |
bool |
null |
no |
readonly_root_filesystem |
When this parameter is true, the container is given read-only access to its root file system. |
bool |
null |
no |
repository_credentials |
The private repository authentication credentials to use. |
string |
null |
no |
resource_requirements |
The type and amount of a resource to assign to a container. |
map(string) |
{} |
no |
secrets |
The secrets to pass to the container. |
map(string) |
{} |
no |
start_timeout |
Time duration (in seconds) to wait before giving up on resolving dependencies for a container. |
number |
null |
no |
stop_timeout |
Time duration (in seconds) to wait before the container is forcefully killed if it doesn't exit normally on its own. |
number |
null |
no |
system_controls |
A list of namespaced kernel parameters to set in the container. |
map(string) |
{} |
no |
ulimits |
A list of ulimits to set in the container. |
map(object({ hard_limit = number soft_limit = number })) |
{} |
no |
user |
The user to use inside the container. |
string |
null |
no |
volumes_from |
Data volumes to mount from another container. |
map(object({ read_only = optional(bool, false) })) |
{} |
no |
working_directory |
The working directory in which to run commands inside the container. |
string |
null |
no |