This is a companion to my article on the Docker plugin for Heat.
DockerInc::Docker::Container
Properties
cmd: ListCommand to run after spawning the container.
Optional property.
Example:
cmd: [ 'thttpd', '-C', '/etc/thttpd.conf', '-D', '-c', '*.cgi']dns: ListSet custom DNS servers.
Example:
dns: - 8.8.8.8 - 8.8.4.4docker_endopint: StringDocker daemon endpoint. By default the local Docker daemon will be used.
Example:
docker_endpoint: tcp://192.168.1.100:2375env: StringSet environment variables.
Example:
env: - MYSQL_ROOT_PASSWORD=secret - "ANOTHER_VARIABLE=something long with spaces"hostname: StringHostname of the container.
Example:
hostname: mywebserverimage: StringImage name to boot.
Example:
image: mysqllinks: MappingLinks to other containers.
Example:
links: name_in_this_container: name_of_that_containermemory: NumberMemory limit in bytes.
Example:
# 512 MB memory: 536870912name: StringName of the container.
Example:
name: dbserveropen_stdin: BooleanTrue to open
stdin.Example:
open_stdin: trueport_bindings: MapTCP/UDP port bindings.
Example:
# bind port 8080 in the container to port 80 on the host port_bindings: 8080: 80port_specs: ListList of TCP/UDP ports exposed by the container.
Example:
port_specs: - 80 - 53/udpprivileged: BooleanEnable extended privileges.
Example:
privileged: truestdin_once: BooleanIf
true, closestdinafter the one attached client disconnects.Example:
stdin_once: truetty: BooleanAllocate a pseudo-tty if
true.Example:
tty: trueuser: StringUsername or UID for running the container.
Example:
username: apachevolumes: MapCreate a bind mount.
Example:
volumes: /var/tmp/data_on_host: /srv/data_in_containervolumes_from: StringThis option is broken in the current version of the Docker plugin.