The following arguments are supported:
additional_gid_names
- list (Optional) A list of additional group names for the processadditional_gids
- list (Optional) A list of additional groups for the processambient
- list (Optional) The Linux ambient capabilities (capabilities passed to non root users) that are requiredannotations
- list (Optional) The map of key value pairs as OCI metadatabinds
- list (Optional) A Simpler interface to specify bind mounts, accepting a string like /src:/dest:opt1,opt2capabilities
- list (Optional) The Linux capabilities required, for example CAP_SYS_ADMIN, if there is a single capability 'all' then all capabilities are addedcgroups_path
- string (Optional) The path for cgroupscommand
- list (Optional) This will override the command and entrypoint in the image with a new list of commandscwd
- string (Optional) The working directory, defaults to /env
- list (Optional) This will override the environment in the image with a new environment list. Specify variables as VAR=valuegid
- number (Optional) The group id of the processgid_mappings
- gid_mappings (Optional) (Experemental) gid mappings for user namespacesgid_name
- string (Optional) The group name of the processhostname
- string (Optional) The hostname inside the imageimage
- string (Required) The Docker image to use for the filesystemipc
- string (Optional) The ipc namespace, either to a path, or if new is specified it will use a new namespacemasked_paths
- list (Optional) The paths which should be hiddenmounts
- mounts (Optional) The full form for specifying a mount, which requires type, source, destination and a list of optionsname
- string (Required) A unique name for the program being executed, used as the containerd idnet
- string (Optional) The network namespace, either to a path, or if none or new is specified it will use a new namespaceno_new_privileges
- bool (Optional) If set to true means no additional capabilities can be acquired and suid binaries do not workoom_score_adj
- number (Optional) This changes the OOM scorepid
- string (Optional) The pid namespace, either to a path, or if host is specified it will use the host namespacereadonly
- bool (Optional) The root filesystem to read only, and changes the other default filesystems to read onlyreadonly_paths
- list (Optional) The paths which should be read onlyresources
- resources (Optional) The cgroup resource limits as per the OCI specrlimits
- list (Optional) The list of rlimit values in the form name,soft,hard, eg nofile,100,200. You can use unlimited as a value toorootfs_propagation
- string (Optional) The rootfs propagation, eg shared, slave or (default) privateruntime
- runtime (Optional) Actions to take place when the container is being startedsysctl
- map (Optional) The map of sysctl key value pairs that are set inside the container namespacetmpfs
- list (Optional) A simpler interface to mount a tmpfs, like --tmpfs in Docker, taking /dest:opt1,opt2uid
- number (Optional) The user id of the processuid_mappings
- uid_mappings (Optional) (Experemental) uid mappings for user namespacesuid_name
- string (Optional) The user name of the processuts
- string (Optional) The uts namespace, either to a path, or if new is specified it will use a new namespace
No additional attributes are exported by this resource.
Below is the documentation for the argument/attribute blocks in use by this resource:
cgroups
- string (Optional)ipc
- string (Optional)mnt
- string (Optional)net
- string (Optional)pid
- string (Optional)user
- string (Optional)uts
- string (Optional)
leaf_weight
- number (Optional) The tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler onlythrottle_read_bps_device
- throttle_read_bps_device (Optional) IO read rate limit per cgroup per device, bytes per secondthrottle_read_iops_device
- throttle_read_iops_device (Optional) IO read rate limit per cgroup per device, IO per secondthrottle_write_bps_device
- throttle_write_bps_device (Optional) IO write rate limit per cgroup per device, bytes per secondthrottle_write_iops_device
- throttle_write_iops_device (Optional) IO read rate limit per cgroup per device, IO per secondweight
- number (Optional) The per cgroup weightweight_device
- weight_device (Optional) The weight per cgroup per device, can override BlkioWeight
cpus
- string (Optional) CPUs to use within the cpusetmems
- string (Optional) List of memory nodes in the cpusetperiod
- number (Optional) CPU period to be used for hardcapping in usecsquota
- number (Optional) CPU hardcap limit in usecsrealtime_period
- number (Optional) CPU period to be used for realtime scheduling in usecsrealtime_runtime
- number (Optional) How much time realtime scheduling may use in usecsshares
- number (Optional) CPU shares (relative weight vs. other cgroups with cpu shares)
access
- string (Optional) Cgroup access permissions format, rwmallow
- bool (Required) Allow or deny devicemajor
- number (Optional) The device's major numberminor
- number (Optional) The device's minor numbertype
- string (Optional) The device type, block, char, etc
container_id
- number (Optional) The starting GID in the containerhost_id
- number (Optional) The starting GID on the host to be mapped to 'ContainerID'size
- number (Optional) The number of IDs to be mapped
limit
- number (Optional) The limit of 'hugepagesize' hugetlb usagepage_size
- string (Optional) The hugepage size
add
- string (Optional) The type of interface to be created in the containers namespace, with the specified namecreate_in_root
- bool (Optional) The interface being added should be created in the root namespace first, then moved. This is needed for wireguard interfacesname
- string (Optional) The name of an interface. An existing interface with this name will be moved into the container's network namespacepeer
- string (Optional) The name of the other end when creating a veth interface. This end will remain in the root namespace, where it can be attached to a bridge. Specifying this implies add: veth
disable_oom_killer
- bool (Optional) This disables the OOM killer for out of memory conditionskernel
- number (Optional) The kernel memory limit (in bytes)kernel_tcp
- number (Optional) The kernel memory limit for tcp (in bytes)limit
- number (Optional) The memory limit (in bytes)reservation
- number (Optional) The memory reservation or soft_limit (in bytes)swap
- number (Optional) The total memory limit (memory + swap)swappiness
- number (Optional) How aggressive the kernel will swap memory pages
destination
- list (Optional) The destination path of the mountoptions
- list (Optional) The fstab style mount optionssource
- list (Optional) The source path of the mounttype
- list (Required) The mount kind
destination
- string (Optional) The destination directory to mount ontooptions
- list (Optional) The options to use when mounting the directorysource
- string (Optional) The source for the directory you want to mounttype
- string (Optional) The type of the mount
class_id
- number (Optional) The class identifier for container's network packetspriorities
- priorities (Optional) The priority of network traffic for container
limit
- number (Optional) Maximum number of PIDs
name
- string (Optional) The name of the network interfacepriority
- number (Optional) The priority for the interface
block_io
- block_io (Optional) The BlockIO restriction configurationcpu
- cpu (Optional) The CPU restriction configurationdevices
- devices (Optional) This configures the device whitelisthugepage_limits
- hugepage_limits (Optional) Hugetlb limit (in bytes)memory
- memory (Optional) The memory restriction configurationnetwork
- network (Optional) The network restriction configurationpids
- pids (Optional) The task resource restriction configuration
bind_ns
- bind_ns (Optional) Specifies a namespace type and a path where the namespace from the container being created will be bound. This allows a namespace to be set up in an onboot container, and then using net: path for a service container to use that network namespace latercgroups
- list (Optional) A list of cgroups that will be created before the container is runinterfaces
- interfaces (Optional) A list of mount specificationsmkdir
- list (Optional) A list of directories to create at runtime, in the root mount namespacemounts
- mounts (Optional) A list of mount specificationsnamespace
- string (Optional) Overrides the LinuxKit default containerd namespace to put the container in; only applicable to services
rate
- number (Optional) The IO rate limit per cgroup per device
rate
- number (Optional) The IO rate limit per cgroup per device
rate
- number (Optional) The IO rate limit per cgroup per device
rate
- number (Optional) The IO rate limit per cgroup per device
container_id
- number (Optional) The starting UID in the containerhost_id
- number (Optional) The starting UID on the host to be mapped to 'ContainerID'size
- number (Optional) The number of IDs to be mapped
leaf_weight
- number (Optional) The tasks' weight in the given cgroup while competing with the cgroup's child cgroups, CFQ scheduler onlyweight
- number (Optional) The weight is the bandwidth rate for the device