Skip to content

containers job from docker/30.0.0-rc.7

Github source: 77ea454 or master branch

Properties

containers

Containers Array (see below for details)

Example
|+
  containers.name: String containing the name of the container
  containers.image: String containing the name of the image to create/run
  containers.command: Optional String containing the command to the run (including arguments)
  containers.blkio_weight: Optional string containg the Block IO (relative weight)
  containers.cap_adds: Optional array of Linux capabilities to add
  containers.cap_drops: Optional array of Linux capabilities to drop
  containers.cpu_period: Optional string containg the CPU CFS (Completely Fair Scheduler) period limit
  containers.cpu_quota: Optional string containg the CPU CFS (Completely Fair Scheduler) quota limit
  containers.cpu_shares: Optional string containg the CPU shares to assign to the container (relative weight)
  containers.depends_on: Optional array of names of others containers in the same job that this container depends on
  containers.devices: Optional array of host devices to add to the container
  containers.disable_content_trust: Optional boolean to skip image verification
  containers.dns: Optional array of strings to set custom DNS servers
  containers.dns_options: Optional array of strings to set custom DNS servers
  containers.dns_search: Optional array of strings to set custom DNS search domains
  containers.entrypoint: Optional string containing the entrypoint (only if you want to override the default entrypoint set by the image)
  containers.env_file: Optional paths to files of environment variables to pass to the container
  containers.env_vars: Optional array of environment variables to pass to the container
  containers.expose_ports: Optional array of network port to expose from the container without publishing it to your host
  containers.group_adds: Optional array of additional groups to join
  containers.hostname: Optional string containing the container host name
  containers.kernel_memory: Optional string containing the kernel memory limit
  containers.labels: Optional array of container labels meta data
  containers.links: Optional array of links to another containers (name:alias)
  containers.log_driver: Optional string containing the log driver for the container
  containers.log_options: Optional array of log driver options
  containers.lxc_options: Optional array of custom lxc options
  containers.mac_address: Optional string containing the container MAC address
  containers.memory: Optional string containing the memory limit to assign to the container (format: <number><optional unit>, where unit = b, k, m or g)
  containers.memory_reservation: Optional string containing the memory soft limit
  containers.memory_swap: Optional string containing the total memory usage (memory + swap), set '-1' to disable swap (format: <number><optional unit>, where unit = b, k, m or g)
  containers.memory_swappiness: Optional string containing the tuning container memory swappiness
  containers.net: Optional string containing the network for the container
  containers.oom_kill_disable: Optional boolean to disable OOM Killer
  containers.privileged: Optional boolean to enable/disable extended privileges to this container
  containers.bind_ports: Optional array of network ports to map to the container
  containers.read_only: Optional boolean to mount the container's root filesystem as read only
  containers.restart: Optional string containing the restart policy to apply when a container exits (no, on-failure, always)
  containers.security_options: Optional array of security options
  containers.stop_signal: Optional string containing the signal to stop a container, SIGTERM by default
  containers.ulimits: Optional array of Ulimit options
  containers.user: Optional string containing the username or UID to run the first process
  containers.volumes: Optional array of volumes to bind mount
  containers.bind_volumes: Optional array of container mountpoints to bind to a host directory
  containers.volumes_from: Optional array of mount volumes from the specified container(s)
  containers.volume_driver: Optional string containing the volume driver for the container
  containers.workdir: Optional string containing the working directory inside the container

Templates

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

  • bin/containers_ctl (from bin/containers_ctl.erb)
  • bin/job_properties.sh (from bin/job_properties.sh.erb)

Packages

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