Skip to content

docker job from docker/10

Github source: 4312799a or master branch

Properties

docker

api_enable_cors

Enable CORS headers in the remote API

Default
false

bridge

Name of the network bridge to attach containers (defaults to docker0)

cidr_prefix

CIDR notation prefix (first 2 octets) for the network bridges IP

daemon

logrotate
frequency

Frequency to run logrotate for Docker daemon log files (crontab five time and date fields)

Default
0 * * * *
rotate

Number of times Docker daemon log files are rotated before being removed

Default
"7"
size

Size before Docker daemon log files are rotated

Default
10M

debug

Enable debug mode

Default
false

dns_domains

Array of DNS search domains to be used by Docker

dns_servers

Array of DNS servers to be used by Docker

exec_driver

Use a specific exec driver

group

Group which will own the Docker services

Default
vcap

icc

Allow unrestricted inter-container and Docker daemon host communication

Default
true

insecure_registries

Array of insecure registries (no certificate verification for HTTPS and enable HTTP fallback)

ip_forward

Enable net.ipv4.ip_forward and IPv6 forwarding

Default
true

ip_masq

Enable IP masquerading for bridge’s IP range

Default
true

iptables

Enable Docker’s addition of iptables rules

Default
true

ipv6

Enable IPv6 networking

Default
false

labels

Array of key=value labels for the daemon

log_level

Set the logging level (debug, info, warn, error, fatal)

Default
info

mtu

Set the containers network MTU (if no value is provided: default to the default route MTU or 1500 if no default route is available)

registry_mirrors

Array of preferred Docker registry mirrors

selinux_enable

Enable selinux support

Default
false

storage_driver

Use a specific storage driver

storage_options

Array of storage driver options

tcp_address

TCP address where Docker daemon will listen to (if not set, TCP will not be available)

Default
127.0.0.1

tcp_port

TCP port where Docker daemon will listen to (if not set, TCP will not be available)

Default
"4243"

tls

Use TLS

Default
false

tls_cacert

Trust only remotes providing a certificate signed by the CA given here

tls_cert

TLS certificate file

tls_key

TLS key file

tls_verify

Use TLS and verify the remote

Default
false

user

User which will own the Docker services

Default
root

env

http_proxy

HTTP proxy that Docker should use

https_proxy

HTTPS proxy that Docker should use

no_proxy

List of comma-separated hosts that Docker should skip connecting to the proxy

remote_syslog

address

IP address for Remote Syslog

debug

Write a debug file

Default
false

group

Group which will own the Remote Syslog services

Default
vcap

new_file_check_interval

How often to check for new files

Default
10s

port

TCP port of Remote Syslog

Default
"514"

protocol

Protocol to be used when forwarding logs to a Remote Syslog (tcp|udp|tls)

Default
udp

user

User which will own the Remote Syslog services

Default
root

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/docker/ directory (learn more).

  • bin/cgroupfs-mount (from bin/cgroupfs-mount)
  • bin/docker_ctl (from bin/docker_ctl)
  • bin/job_properties.sh (from bin/job_properties.sh.erb)
  • bin/remote_syslog_ctl (from bin/remote_syslog_ctl)
  • config/docker.cacert (from config/docker.cacert.erb)
  • config/docker.cert (from config/docker.cert.erb)
  • config/docker.key (from config/docker.key.erb)
  • config/docker_logrotate.cron (from config/docker_logrotate.cron.erb)
  • config/logrotate.conf (from config/logrotate.conf.erb)
  • config/remote_syslog.yml (from config/remote_syslog.yml.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.