Container
Manages the lifecycle of a Docker container.
Example Usage
using Pulumi;
using Docker = Pulumi.Docker;
class MyStack : Stack
{
public MyStack()
{
// Find the latest Ubuntu precise image.
var ubuntuRemoteImage = new Docker.RemoteImage("ubuntuRemoteImage", new Docker.RemoteImageArgs
{
Name = "ubuntu:precise",
});
// Start a container
var ubuntuContainer = new Docker.Container("ubuntuContainer", new Docker.ContainerArgs
{
Image = ubuntuRemoteImage.Latest,
});
}
}
Coming soon!
import pulumi
import pulumi_docker as docker
# Find the latest Ubuntu precise image.
ubuntu_remote_image = docker.RemoteImage("ubuntuRemoteImage", name="ubuntu:precise")
# Start a container
ubuntu_container = docker.Container("ubuntuContainer", image=ubuntu_remote_image.latest)import * as pulumi from "@pulumi/pulumi";
import * as docker from "@pulumi/docker";
// Find the latest Ubuntu precise image.
const ubuntuRemoteImage = new docker.RemoteImage("ubuntu", {
name: "ubuntu:precise",
});
// Start a container
const ubuntuContainer = new docker.Container("ubuntu", {
image: ubuntuRemoteImage.latest,
});Create a Container Resource
new Container(name: string, args: ContainerArgs, opts?: CustomResourceOptions);def Container(resource_name, opts=None, attach=None, capabilities=None, command=None, cpu_set=None, cpu_shares=None, destroy_grace_seconds=None, devices=None, dns=None, dns_opts=None, dns_searches=None, domainname=None, entrypoints=None, envs=None, group_adds=None, healthcheck=None, hostname=None, hosts=None, image=None, ipc_mode=None, labels=None, links=None, log_driver=None, log_opts=None, logs=None, max_retry_count=None, memory=None, memory_swap=None, mounts=None, must_run=None, name=None, network_aliases=None, network_mode=None, networks=None, networks_advanced=None, pid_mode=None, ports=None, privileged=None, publish_all_ports=None, read_only=None, restart=None, rm=None, shm_size=None, start=None, sysctls=None, tmpfs=None, ulimits=None, uploads=None, user=None, userns_mode=None, volumes=None, working_dir=None, __props__=None);func NewContainer(ctx *Context, name string, args ContainerArgs, opts ...ResourceOption) (*Container, error)public Container(string name, ContainerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ContainerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Container Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Container resource accepts the following input properties:
- Image string
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- Attach bool
If true attach to the container after its creation and waits the end of his execution.
- Capabilities
Container
Capabilities Args See Capabilities below for details.
- Command List<string>
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- Cpu
Set string A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- int
CPU shares (relative weight) for the container.
- Destroy
Grace intSeconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- Devices
List<Container
Device Args> See Devices below for details.
- Dns List<string>
Set of DNS servers.
- Dns
Opts List<string> Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- Dns
Searches List<string> Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- Domainname string
Domain name of the container.
- Entrypoints List<string>
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- Envs List<string>
Environment variables to set.
- Group
Adds List<string> Add additional groups to run as.
- Healthcheck
Container
Healthcheck Args See Healthcheck below for details.
- Hostname string
Hostname of the container.
- Hosts
List<Container
Host Args> Hostname to add.
- Ipc
Mode string IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- Labels
List<Container
Label Args> Adding labels.
- Links List<string>
Set of links for link based connectivity between containers that are running on the same host.
- Log
Driver string The logging driver to use for the container. Defaults to “json-file”.
- Log
Opts Dictionary<string, object> Key/value pairs to use as options for the logging driver.
- Logs bool
Save the container logs (
attachmust be enabled).- Max
Retry intCount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- Memory int
The memory limit for the container in MBs.
- Memory
Swap int - Mounts
List<Container
Mount Args> See Mounts below for details.
- Must
Run bool - Name string
- Network
Aliases List<string> Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- Network
Mode string Network mode of the container.
- Networks List<string>
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- Networks
Advanced List<ContainerNetworks Advanced Args> See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- Pid
Mode string The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- Ports
List<Container
Port Args> See Ports below for details.
- Privileged bool
Run container in privileged mode.
- Publish
All boolPorts Publish all ports of the container.
- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Restart string
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- Rm bool
- Shm
Size int Size of
/dev/shmin MBs.- Start bool
If true, then the Docker container will be started after creation. If false, then the container is only created.
- Sysctls Dictionary<string, object>
A map of kernel parameters (sysctls) to set in the container.
- Tmpfs Dictionary<string, object>
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- Ulimits
List<Container
Ulimit Args> See Ulimits below for details.
- Uploads
List<Container
Upload Args> See File Upload below for details.
- User string
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- Userns
Mode string Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- Volumes
List<Container
Volume Args> See Volumes below for details.
- Working
Dir string The working directory for commands to run in
- Image string
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- Attach bool
If true attach to the container after its creation and waits the end of his execution.
- Capabilities
Container
Capabilities See Capabilities below for details.
- Command []string
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- Cpu
Set string A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- int
CPU shares (relative weight) for the container.
- Destroy
Grace intSeconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- Devices
[]Container
Device See Devices below for details.
- Dns []string
Set of DNS servers.
- Dns
Opts []string Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- Dns
Searches []string Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- Domainname string
Domain name of the container.
- Entrypoints []string
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- Envs []string
Environment variables to set.
- Group
Adds []string Add additional groups to run as.
- Healthcheck
Container
Healthcheck See Healthcheck below for details.
- Hostname string
Hostname of the container.
- Hosts
[]Container
Host Hostname to add.
- Ipc
Mode string IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- Labels
[]Container
Label Adding labels.
- Links []string
Set of links for link based connectivity between containers that are running on the same host.
- Log
Driver string The logging driver to use for the container. Defaults to “json-file”.
- Log
Opts map[string]interface{} Key/value pairs to use as options for the logging driver.
- Logs bool
Save the container logs (
attachmust be enabled).- Max
Retry intCount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- Memory int
The memory limit for the container in MBs.
- Memory
Swap int - Mounts
[]Container
Mount See Mounts below for details.
- Must
Run bool - Name string
- Network
Aliases []string Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- Network
Mode string Network mode of the container.
- Networks []string
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- Networks
Advanced []ContainerNetworks Advanced See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- Pid
Mode string The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- Ports
[]Container
Port See Ports below for details.
- Privileged bool
Run container in privileged mode.
- Publish
All boolPorts Publish all ports of the container.
- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Restart string
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- Rm bool
- Shm
Size int Size of
/dev/shmin MBs.- Start bool
If true, then the Docker container will be started after creation. If false, then the container is only created.
- Sysctls map[string]interface{}
A map of kernel parameters (sysctls) to set in the container.
- Tmpfs map[string]interface{}
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- Ulimits
[]Container
Ulimit See Ulimits below for details.
- Uploads
[]Container
Upload See File Upload below for details.
- User string
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- Userns
Mode string Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- Volumes
[]Container
Volume See Volumes below for details.
- Working
Dir string The working directory for commands to run in
- image string
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- attach boolean
If true attach to the container after its creation and waits the end of his execution.
- capabilities
Container
Capabilities See Capabilities below for details.
- command string[]
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- cpu
Set string A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- number
CPU shares (relative weight) for the container.
- destroy
Grace numberSeconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- devices
Container
Device[] See Devices below for details.
- dns string[]
Set of DNS servers.
- dns
Opts string[] Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- dns
Searches string[] Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- domainname string
Domain name of the container.
- entrypoints string[]
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- envs string[]
Environment variables to set.
- group
Adds string[] Add additional groups to run as.
- healthcheck
Container
Healthcheck See Healthcheck below for details.
- hostname string
Hostname of the container.
- hosts
Container
Host[] Hostname to add.
- ipc
Mode string IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- labels
Container
Label[] Adding labels.
- links string[]
Set of links for link based connectivity between containers that are running on the same host.
- log
Driver string The logging driver to use for the container. Defaults to “json-file”.
- log
Opts {[key: string]: any} Key/value pairs to use as options for the logging driver.
- logs boolean
Save the container logs (
attachmust be enabled).- max
Retry numberCount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- memory number
The memory limit for the container in MBs.
- memory
Swap number - mounts
Container
Mount[] See Mounts below for details.
- must
Run boolean - name string
- network
Aliases string[] Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- network
Mode string Network mode of the container.
- networks string[]
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- networks
Advanced ContainerNetworks Advanced[] See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- pid
Mode string The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- ports
Container
Port[] See Ports below for details.
- privileged boolean
Run container in privileged mode.
- publish
All booleanPorts Publish all ports of the container.
- read
Only boolean If true, this volume will be readonly. Defaults to false.
- restart string
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- rm boolean
- shm
Size number Size of
/dev/shmin MBs.- start boolean
If true, then the Docker container will be started after creation. If false, then the container is only created.
- sysctls {[key: string]: any}
A map of kernel parameters (sysctls) to set in the container.
- tmpfs {[key: string]: any}
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- ulimits
Container
Ulimit[] See Ulimits below for details.
- uploads
Container
Upload[] See File Upload below for details.
- user string
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- userns
Mode string Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- volumes
Container
Volume[] See Volumes below for details.
- working
Dir string The working directory for commands to run in
- image str
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- attach bool
If true attach to the container after its creation and waits the end of his execution.
- capabilities
Dict[Container
Capabilities] See Capabilities below for details.
- command List[str]
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- cpu_
set str A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- float
CPU shares (relative weight) for the container.
- destroy_
grace_ floatseconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- devices
List[Container
Device] See Devices below for details.
- dns List[str]
Set of DNS servers.
- dns_
opts List[str] Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- dns_
searches List[str] Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- domainname str
Domain name of the container.
- entrypoints List[str]
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- envs List[str]
Environment variables to set.
- group_
adds List[str] Add additional groups to run as.
- healthcheck
Dict[Container
Healthcheck] See Healthcheck below for details.
- hostname str
Hostname of the container.
- hosts
List[Container
Host] Hostname to add.
- ipc_
mode str IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- labels
List[Container
Label] Adding labels.
- links List[str]
Set of links for link based connectivity between containers that are running on the same host.
- log_
driver str The logging driver to use for the container. Defaults to “json-file”.
- log_
opts Dict[str, Any] Key/value pairs to use as options for the logging driver.
- logs bool
Save the container logs (
attachmust be enabled).- max_
retry_ floatcount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- memory float
The memory limit for the container in MBs.
- memory_
swap float - mounts
List[Container
Mount] See Mounts below for details.
- must_
run bool - name str
- network_
aliases List[str] Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- network_
mode str Network mode of the container.
- networks List[str]
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- networks_
advanced List[ContainerNetworks Advanced] See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- pid_
mode str The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- ports
List[Container
Port] See Ports below for details.
- privileged bool
Run container in privileged mode.
- publish_
all_ boolports Publish all ports of the container.
- read_
only bool If true, this volume will be readonly. Defaults to false.
- restart str
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- rm bool
- shm_
size float Size of
/dev/shmin MBs.- start bool
If true, then the Docker container will be started after creation. If false, then the container is only created.
- sysctls Dict[str, Any]
A map of kernel parameters (sysctls) to set in the container.
- tmpfs Dict[str, Any]
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- ulimits
List[Container
Ulimit] See Ulimits below for details.
- uploads
List[Container
Upload] See File Upload below for details.
- user str
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- userns_
mode str Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- volumes
List[Container
Volume] See Volumes below for details.
- working_
dir str The working directory for commands to run in
Outputs
All input properties are implicitly available as output properties. Additionally, the Container resource produces the following output properties:
- Bridge string
The network bridge of the container as read from its NetworkSettings.
- Container
Logs string The logs of the container if its execution is done (
attachmust be disabled).- Exit
Code int The exit code of the container if its execution is done (
must_runmust be disabled).- Gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- Ip
Prefix intLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- Network
Datas List<ContainerNetwork Data> (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- Bridge string
The network bridge of the container as read from its NetworkSettings.
- Container
Logs string The logs of the container if its execution is done (
attachmust be disabled).- Exit
Code int The exit code of the container if its execution is done (
must_runmust be disabled).- Gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- Id string
- The provider-assigned unique ID for this managed resource.
- Ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- Ip
Prefix intLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- Network
Datas []ContainerNetwork Data (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- bridge string
The network bridge of the container as read from its NetworkSettings.
- container
Logs string The logs of the container if its execution is done (
attachmust be disabled).- exit
Code number The exit code of the container if its execution is done (
must_runmust be disabled).- gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- id string
- The provider-assigned unique ID for this managed resource.
- ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- ip
Prefix numberLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- network
Datas ContainerNetwork Data[] (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- bridge str
The network bridge of the container as read from its NetworkSettings.
- container_
logs str The logs of the container if its execution is done (
attachmust be disabled).- exit_
code float The exit code of the container if its execution is done (
must_runmust be disabled).- gateway str
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- id str
- The provider-assigned unique ID for this managed resource.
- ip_
address str Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- ip_
prefix_ floatlength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- network_
datas List[ContainerNetwork Data] (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
Look up an Existing Container Resource
Get an existing Container resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ContainerState, opts?: CustomResourceOptions): Containerstatic get(resource_name, id, opts=None, attach=None, bridge=None, capabilities=None, command=None, container_logs=None, cpu_set=None, cpu_shares=None, destroy_grace_seconds=None, devices=None, dns=None, dns_opts=None, dns_searches=None, domainname=None, entrypoints=None, envs=None, exit_code=None, gateway=None, group_adds=None, healthcheck=None, hostname=None, hosts=None, image=None, ip_address=None, ip_prefix_length=None, ipc_mode=None, labels=None, links=None, log_driver=None, log_opts=None, logs=None, max_retry_count=None, memory=None, memory_swap=None, mounts=None, must_run=None, name=None, network_aliases=None, network_datas=None, network_mode=None, networks=None, networks_advanced=None, pid_mode=None, ports=None, privileged=None, publish_all_ports=None, read_only=None, restart=None, rm=None, shm_size=None, start=None, sysctls=None, tmpfs=None, ulimits=None, uploads=None, user=None, userns_mode=None, volumes=None, working_dir=None, __props__=None);func GetContainer(ctx *Context, name string, id IDInput, state *ContainerState, opts ...ResourceOption) (*Container, error)public static Container Get(string name, Input<string> id, ContainerState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Attach bool
If true attach to the container after its creation and waits the end of his execution.
- Bridge string
The network bridge of the container as read from its NetworkSettings.
- Capabilities
Container
Capabilities Args See Capabilities below for details.
- Command List<string>
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- Container
Logs string The logs of the container if its execution is done (
attachmust be disabled).- Cpu
Set string A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- int
CPU shares (relative weight) for the container.
- Destroy
Grace intSeconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- Devices
List<Container
Device Args> See Devices below for details.
- Dns List<string>
Set of DNS servers.
- Dns
Opts List<string> Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- Dns
Searches List<string> Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- Domainname string
Domain name of the container.
- Entrypoints List<string>
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- Envs List<string>
Environment variables to set.
- Exit
Code int The exit code of the container if its execution is done (
must_runmust be disabled).- Gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- Group
Adds List<string> Add additional groups to run as.
- Healthcheck
Container
Healthcheck Args See Healthcheck below for details.
- Hostname string
Hostname of the container.
- Hosts
List<Container
Host Args> Hostname to add.
- Image string
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- Ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- Ip
Prefix intLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- Ipc
Mode string IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- Labels
List<Container
Label Args> Adding labels.
- Links List<string>
Set of links for link based connectivity between containers that are running on the same host.
- Log
Driver string The logging driver to use for the container. Defaults to “json-file”.
- Log
Opts Dictionary<string, object> Key/value pairs to use as options for the logging driver.
- Logs bool
Save the container logs (
attachmust be enabled).- Max
Retry intCount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- Memory int
The memory limit for the container in MBs.
- Memory
Swap int - Mounts
List<Container
Mount Args> See Mounts below for details.
- Must
Run bool - Name string
- Network
Aliases List<string> Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- Network
Datas List<ContainerNetwork Data Args> (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- Network
Mode string Network mode of the container.
- Networks List<string>
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- Networks
Advanced List<ContainerNetworks Advanced Args> See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- Pid
Mode string The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- Ports
List<Container
Port Args> See Ports below for details.
- Privileged bool
Run container in privileged mode.
- Publish
All boolPorts Publish all ports of the container.
- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Restart string
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- Rm bool
- Shm
Size int Size of
/dev/shmin MBs.- Start bool
If true, then the Docker container will be started after creation. If false, then the container is only created.
- Sysctls Dictionary<string, object>
A map of kernel parameters (sysctls) to set in the container.
- Tmpfs Dictionary<string, object>
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- Ulimits
List<Container
Ulimit Args> See Ulimits below for details.
- Uploads
List<Container
Upload Args> See File Upload below for details.
- User string
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- Userns
Mode string Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- Volumes
List<Container
Volume Args> See Volumes below for details.
- Working
Dir string The working directory for commands to run in
- Attach bool
If true attach to the container after its creation and waits the end of his execution.
- Bridge string
The network bridge of the container as read from its NetworkSettings.
- Capabilities
Container
Capabilities See Capabilities below for details.
- Command []string
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- Container
Logs string The logs of the container if its execution is done (
attachmust be disabled).- Cpu
Set string A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- int
CPU shares (relative weight) for the container.
- Destroy
Grace intSeconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- Devices
[]Container
Device See Devices below for details.
- Dns []string
Set of DNS servers.
- Dns
Opts []string Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- Dns
Searches []string Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- Domainname string
Domain name of the container.
- Entrypoints []string
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- Envs []string
Environment variables to set.
- Exit
Code int The exit code of the container if its execution is done (
must_runmust be disabled).- Gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- Group
Adds []string Add additional groups to run as.
- Healthcheck
Container
Healthcheck See Healthcheck below for details.
- Hostname string
Hostname of the container.
- Hosts
[]Container
Host Hostname to add.
- Image string
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- Ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- Ip
Prefix intLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- Ipc
Mode string IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- Labels
[]Container
Label Adding labels.
- Links []string
Set of links for link based connectivity between containers that are running on the same host.
- Log
Driver string The logging driver to use for the container. Defaults to “json-file”.
- Log
Opts map[string]interface{} Key/value pairs to use as options for the logging driver.
- Logs bool
Save the container logs (
attachmust be enabled).- Max
Retry intCount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- Memory int
The memory limit for the container in MBs.
- Memory
Swap int - Mounts
[]Container
Mount See Mounts below for details.
- Must
Run bool - Name string
- Network
Aliases []string Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- Network
Datas []ContainerNetwork Data (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- Network
Mode string Network mode of the container.
- Networks []string
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- Networks
Advanced []ContainerNetworks Advanced See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- Pid
Mode string The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- Ports
[]Container
Port See Ports below for details.
- Privileged bool
Run container in privileged mode.
- Publish
All boolPorts Publish all ports of the container.
- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Restart string
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- Rm bool
- Shm
Size int Size of
/dev/shmin MBs.- Start bool
If true, then the Docker container will be started after creation. If false, then the container is only created.
- Sysctls map[string]interface{}
A map of kernel parameters (sysctls) to set in the container.
- Tmpfs map[string]interface{}
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- Ulimits
[]Container
Ulimit See Ulimits below for details.
- Uploads
[]Container
Upload See File Upload below for details.
- User string
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- Userns
Mode string Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- Volumes
[]Container
Volume See Volumes below for details.
- Working
Dir string The working directory for commands to run in
- attach boolean
If true attach to the container after its creation and waits the end of his execution.
- bridge string
The network bridge of the container as read from its NetworkSettings.
- capabilities
Container
Capabilities See Capabilities below for details.
- command string[]
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- container
Logs string The logs of the container if its execution is done (
attachmust be disabled).- cpu
Set string A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- number
CPU shares (relative weight) for the container.
- destroy
Grace numberSeconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- devices
Container
Device[] See Devices below for details.
- dns string[]
Set of DNS servers.
- dns
Opts string[] Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- dns
Searches string[] Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- domainname string
Domain name of the container.
- entrypoints string[]
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- envs string[]
Environment variables to set.
- exit
Code number The exit code of the container if its execution is done (
must_runmust be disabled).- gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- group
Adds string[] Add additional groups to run as.
- healthcheck
Container
Healthcheck See Healthcheck below for details.
- hostname string
Hostname of the container.
- hosts
Container
Host[] Hostname to add.
- image string
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- ip
Prefix numberLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- ipc
Mode string IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- labels
Container
Label[] Adding labels.
- links string[]
Set of links for link based connectivity between containers that are running on the same host.
- log
Driver string The logging driver to use for the container. Defaults to “json-file”.
- log
Opts {[key: string]: any} Key/value pairs to use as options for the logging driver.
- logs boolean
Save the container logs (
attachmust be enabled).- max
Retry numberCount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- memory number
The memory limit for the container in MBs.
- memory
Swap number - mounts
Container
Mount[] See Mounts below for details.
- must
Run boolean - name string
- network
Aliases string[] Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- network
Datas ContainerNetwork Data[] (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- network
Mode string Network mode of the container.
- networks string[]
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- networks
Advanced ContainerNetworks Advanced[] See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- pid
Mode string The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- ports
Container
Port[] See Ports below for details.
- privileged boolean
Run container in privileged mode.
- publish
All booleanPorts Publish all ports of the container.
- read
Only boolean If true, this volume will be readonly. Defaults to false.
- restart string
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- rm boolean
- shm
Size number Size of
/dev/shmin MBs.- start boolean
If true, then the Docker container will be started after creation. If false, then the container is only created.
- sysctls {[key: string]: any}
A map of kernel parameters (sysctls) to set in the container.
- tmpfs {[key: string]: any}
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- ulimits
Container
Ulimit[] See Ulimits below for details.
- uploads
Container
Upload[] See File Upload below for details.
- user string
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- userns
Mode string Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- volumes
Container
Volume[] See Volumes below for details.
- working
Dir string The working directory for commands to run in
- attach bool
If true attach to the container after its creation and waits the end of his execution.
- bridge str
The network bridge of the container as read from its NetworkSettings.
- capabilities
Dict[Container
Capabilities] See Capabilities below for details.
- command List[str]
The command to use to start the container. For example, to run
/usr/bin/myprogram -f baz.confset the command to be["/usr/bin/myprogram", "-f", "baz.conf"].- container_
logs str The logs of the container if its execution is done (
attachmust be disabled).- cpu_
set str A comma-separated list or hyphen-separated range of CPUs a container can use, e.g.
0-1.- float
CPU shares (relative weight) for the container.
- destroy_
grace_ floatseconds If defined will attempt to stop the container before destroying. Container will be destroyed after
nseconds or on successful stop.- devices
List[Container
Device] See Devices below for details.
- dns List[str]
Set of DNS servers.
- dns_
opts List[str] Set of DNS options used by the DNS provider(s), see
resolv.confdocumentation for valid list of options.- dns_
searches List[str] Set of DNS search domains that are used when bare unqualified hostnames are used inside of the container.
- domainname str
Domain name of the container.
- entrypoints List[str]
The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run
/usr/bin/myprogramwhen starting a container, set the entrypoint to be["/usr/bin/myprogram"].- envs List[str]
Environment variables to set.
- exit_
code float The exit code of the container if its execution is done (
must_runmust be disabled).- gateway str
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- group_
adds List[str] Add additional groups to run as.
- healthcheck
Dict[Container
Healthcheck] See Healthcheck below for details.
- hostname str
Hostname of the container.
- hosts
List[Container
Host] Hostname to add.
- image str
The ID of the image to back this container. The easiest way to get this value is to use the
docker..RemoteImageresource as is shown in the example above.- ip_
address str Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- ip_
prefix_ floatlength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- ipc_
mode str IPC sharing mode for the container. Possible values are:
none,private,shareable,container:<name|id>orhost.- labels
List[Container
Label] Adding labels.
- links List[str]
Set of links for link based connectivity between containers that are running on the same host.
- log_
driver str The logging driver to use for the container. Defaults to “json-file”.
- log_
opts Dict[str, Any] Key/value pairs to use as options for the logging driver.
- logs bool
Save the container logs (
attachmust be enabled).- max_
retry_ floatcount The maximum amount of times to an attempt a restart when
restartis set to “on-failure”- memory float
The memory limit for the container in MBs.
- memory_
swap float - mounts
List[Container
Mount] See Mounts below for details.
- must_
run bool - name str
- network_
aliases List[str] Network aliases of the container for user-defined networks only. Deprecated: use
networks_advancedinstead.- network_
datas List[ContainerNetwork Data] (Map of a block) The IP addresses of the container on each network. Key are the network names, values are the IP addresses.
- network_
mode str Network mode of the container.
- networks List[str]
Id of the networks in which the container is. Deprecated: use
networks_advancedinstead.- networks_
advanced List[ContainerNetworks Advanced] See Networks Advanced below for details. If this block has priority to the deprecated
network_aliasandnetworkproperties.- pid_
mode str The PID (Process) Namespace mode for the container. Either
container:<name|id>orhost.- ports
List[Container
Port] See Ports below for details.
- privileged bool
Run container in privileged mode.
- publish_
all_ boolports Publish all ports of the container.
- read_
only bool If true, this volume will be readonly. Defaults to false.
- restart str
The restart policy for the container. Must be one of “no”, “on-failure”, “always”, “unless-stopped”.
- rm bool
- shm_
size float Size of
/dev/shmin MBs.- start bool
If true, then the Docker container will be started after creation. If false, then the container is only created.
- sysctls Dict[str, Any]
A map of kernel parameters (sysctls) to set in the container.
- tmpfs Dict[str, Any]
A map of container directories which should be replaced by
tmpfs mounts, and their corresponding mount options.- ulimits
List[Container
Ulimit] See Ulimits below for details.
- uploads
List[Container
Upload] See File Upload below for details.
- user str
User used for run the first process. Format is
useroruser:groupwhich user and group can be passed literraly or by name.- userns_
mode str Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
- volumes
List[Container
Volume] See Volumes below for details.
- working_
dir str The working directory for commands to run in
Supporting Types
ContainerCapabilities
- Adds List<string>
list of linux capabilities to add.
- Drops List<string>
list of linux capabilities to drop.
ContainerDevice
- Host
Path string The path on the host where the device is located.
- Container
Path string The path in the container where the device will be binded.
- Permissions string
The cgroup permissions given to the container to access the device. Defaults to
rwm.
- Host
Path string The path on the host where the device is located.
- Container
Path string The path in the container where the device will be binded.
- Permissions string
The cgroup permissions given to the container to access the device. Defaults to
rwm.
- host
Path string The path on the host where the device is located.
- container
Path string The path in the container where the device will be binded.
- permissions string
The cgroup permissions given to the container to access the device. Defaults to
rwm.
- host
Path str The path on the host where the device is located.
- container
Path str The path in the container where the device will be binded.
- permissions str
The cgroup permissions given to the container to access the device. Defaults to
rwm.
ContainerHealthcheck
- Tests List<string>
Command to run to check health. For example, to run
curl -f http://localhost/healthset the command to be["CMD", "curl", "-f", "http://localhost/health"].- Interval string
Time between running the check
(ms|s|m|h). Default:0s.- Retries int
Consecutive failures needed to report unhealthy. Default:
0.- Start
Period string Start period for the container to initialize before counting retries towards unstable
(ms|s|m|h). Default:0s.- Timeout string
Maximum time to allow one check to run
(ms|s|m|h). Default:0s.
- Tests []string
Command to run to check health. For example, to run
curl -f http://localhost/healthset the command to be["CMD", "curl", "-f", "http://localhost/health"].- Interval string
Time between running the check
(ms|s|m|h). Default:0s.- Retries int
Consecutive failures needed to report unhealthy. Default:
0.- Start
Period string Start period for the container to initialize before counting retries towards unstable
(ms|s|m|h). Default:0s.- Timeout string
Maximum time to allow one check to run
(ms|s|m|h). Default:0s.
- tests string[]
Command to run to check health. For example, to run
curl -f http://localhost/healthset the command to be["CMD", "curl", "-f", "http://localhost/health"].- interval string
Time between running the check
(ms|s|m|h). Default:0s.- retries number
Consecutive failures needed to report unhealthy. Default:
0.- start
Period string Start period for the container to initialize before counting retries towards unstable
(ms|s|m|h). Default:0s.- timeout string
Maximum time to allow one check to run
(ms|s|m|h). Default:0s.
- tests List[str]
Command to run to check health. For example, to run
curl -f http://localhost/healthset the command to be["CMD", "curl", "-f", "http://localhost/health"].- interval str
Time between running the check
(ms|s|m|h). Default:0s.- retries float
Consecutive failures needed to report unhealthy. Default:
0.- start
Period str Start period for the container to initialize before counting retries towards unstable
(ms|s|m|h). Default:0s.- timeout str
Maximum time to allow one check to run
(ms|s|m|h). Default:0s.
ContainerHost
ContainerLabel
ContainerMount
- Target string
The container path.
- Type string
The mount type: valid values are
bind|volume|tmpfs.- Bind
Options ContainerMount Bind Options Args Optional configuration for the
bindtype.- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Source string
The mount source (e.g., a volume name, a host path)
- Tmpfs
Options ContainerMount Tmpfs Options Args Optional configuration for the
tmpftype.- Volume
Options ContainerMount Volume Options Args Optional configuration for the
volumetype.
- Target string
The container path.
- Type string
The mount type: valid values are
bind|volume|tmpfs.- Bind
Options ContainerMount Bind Options Optional configuration for the
bindtype.- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Source string
The mount source (e.g., a volume name, a host path)
- Tmpfs
Options ContainerMount Tmpfs Options Optional configuration for the
tmpftype.- Volume
Options ContainerMount Volume Options Optional configuration for the
volumetype.
- target string
The container path.
- type string
The mount type: valid values are
bind|volume|tmpfs.- bind
Options ContainerMount Bind Options Optional configuration for the
bindtype.- read
Only boolean If true, this volume will be readonly. Defaults to false.
- source string
The mount source (e.g., a volume name, a host path)
- tmpfs
Options ContainerMount Tmpfs Options Optional configuration for the
tmpftype.- volume
Options ContainerMount Volume Options Optional configuration for the
volumetype.
- target str
The container path.
- type str
The mount type: valid values are
bind|volume|tmpfs.- bind
Options Dict[ContainerMount Bind Options] Optional configuration for the
bindtype.- read_
only bool If true, this volume will be readonly. Defaults to false.
- source str
The mount source (e.g., a volume name, a host path)
- tmpfs
Options Dict[ContainerMount Tmpfs Options] Optional configuration for the
tmpftype.- volume
Options Dict[ContainerMount Volume Options] Optional configuration for the
volumetype.
ContainerMountBindOptions
- Propagation string
A propagation mode with the value.
- Propagation string
A propagation mode with the value.
- propagation string
A propagation mode with the value.
- propagation str
A propagation mode with the value.
ContainerMountTmpfsOptions
ContainerMountVolumeOptions
- Driver
Name string - Driver
Options Dictionary<string, string> Options for the driver.
- Labels
List<Container
Mount Volume Options Label Args> Adding labels.
- No
Copy bool Whether to populate volume with data from the target.
- Driver
Name string - Driver
Options map[string]string Options for the driver.
- Labels
[]Container
Mount Volume Options Label Adding labels.
- No
Copy bool Whether to populate volume with data from the target.
- driver
Name string - driver
Options {[key: string]: string} Options for the driver.
- labels
Container
Mount Volume Options Label[] Adding labels.
- no
Copy boolean Whether to populate volume with data from the target.
- driver
Name str - driver
Options Dict[str, str] Options for the driver.
- labels
List[Container
Mount Volume Options Label] Adding labels.
- no
Copy bool Whether to populate volume with data from the target.
ContainerMountVolumeOptionsLabel
ContainerNetworkData
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- Ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- Ip
Prefix intLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- Network
Name string
- Gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- Ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- Ip
Prefix intLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- Network
Name string
- gateway string
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- ip
Address string Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- ip
Prefix numberLength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- network
Name string
- gateway str
Deprecated: Use
network_datainstead. The network gateway of the container as read from its NetworkSettings.- ip_
address str Deprecated: Use
network_datainstead. The IP address of the container’s first network it.- ip_
prefix_ floatlength Deprecated: Use
network_datainstead. The IP prefix length of the container as read from its NetworkSettings.- network
Name str
ContainerNetworksAdvanced
- Name string
The name of the network.
- Aliases List<string>
The network aliases of the container in the specific network.
- Ipv4Address string
The IPV4 address of the container in the specific network.
- Ipv6Address string
The IPV6 address of the container in the specific network.
- Name string
The name of the network.
- Aliases []string
The network aliases of the container in the specific network.
- Ipv4Address string
The IPV4 address of the container in the specific network.
- Ipv6Address string
The IPV6 address of the container in the specific network.
- name string
The name of the network.
- aliases string[]
The network aliases of the container in the specific network.
- ipv4Address string
The IPV4 address of the container in the specific network.
- ipv6Address string
The IPV6 address of the container in the specific network.
- name str
The name of the network.
- aliases List[str]
The network aliases of the container in the specific network.
- ipv4Address str
The IPV4 address of the container in the specific network.
- ipv6Address str
The IPV6 address of the container in the specific network.
ContainerPort
ContainerUlimit
ContainerUpload
- File string
path to a file in the container.
- Content string
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- Content
Base64 string - Executable bool
If true, the file will be uploaded with user executable permission. Defaults to false.
- Source string
A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state.
- Source
Hash string If using
source, this will force an update if the file content has updated but the filename has not.
- File string
path to a file in the container.
- Content string
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- Content
Base64 string - Executable bool
If true, the file will be uploaded with user executable permission. Defaults to false.
- Source string
A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state.
- Source
Hash string If using
source, this will force an update if the file content has updated but the filename has not.
- file string
path to a file in the container.
- content string
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Base64 string - executable boolean
If true, the file will be uploaded with user executable permission. Defaults to false.
- source string
A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state.
- source
Hash string If using
source, this will force an update if the file content has updated but the filename has not.
- file str
path to a file in the container.
- content str
Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text.
- content
Base64 str - executable bool
If true, the file will be uploaded with user executable permission. Defaults to false.
- source str
A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state.
- source
Hash str If using
source, this will force an update if the file content has updated but the filename has not.
ContainerVolume
- Container
Path string The path in the container where the device will be binded.
- From
Container string The container where the volume is coming from.
- Host
Path string The path on the host where the device is located.
- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Volume
Name string The name of the docker volume which should be mounted.
- Container
Path string The path in the container where the device will be binded.
- From
Container string The container where the volume is coming from.
- Host
Path string The path on the host where the device is located.
- Read
Only bool If true, this volume will be readonly. Defaults to false.
- Volume
Name string The name of the docker volume which should be mounted.
- container
Path string The path in the container where the device will be binded.
- from
Container string The container where the volume is coming from.
- host
Path string The path on the host where the device is located.
- read
Only boolean If true, this volume will be readonly. Defaults to false.
- volume
Name string The name of the docker volume which should be mounted.
- container
Path str The path in the container where the device will be binded.
- from
Container str The container where the volume is coming from.
- host
Path str The path on the host where the device is located.
- read_
only bool If true, this volume will be readonly. Defaults to false.
- volume
Name str The name of the docker volume which should be mounted.
Package Details
- Repository
- https://github.com/pulumi/pulumi-docker
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dockerTerraform Provider.