Public | Automated Build

Last pushed: 3 months ago
Short Description
Sidekick image for deploying DataDog Agent in Rancher environment
Full Description

Data only image containing an entrypoint wrapper script for running the official Datadog Agent image in a Rancher environment.

* Sets the reported hostname to the name of the host (from Rancher Metadata service)
* Sets DataDog tags from Rancher host labels (from Rancher Metadata service)

Builds

Trusted automated builds are available from Docker Hub.

Usage in Rancher Compose

datadog-agent:
  image: docker-dd-agent
  restart: always
  environment:
    API_KEY: ${api_key}
    HOST_LABELS: ${host_labels}
  volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - /proc/:/host/proc/:ro
    - /sys/fs/cgroup/:/host/sys/fs/cgroup:ro
  volumes_from:
    - datadog-init
  entrypoint: /opt/rancher/entrypoint.sh
datadog-init:
  image: janeczku/datadog-rancher-init
  net: none
  command: /bin/true
  labels:
    io.rancher.container.start_once: 'true'
  volumes:
    - /opt/rancher
Docker Pull Command
Owner
janeczku
Source Repository

Comments (0)