title: Why does DataDog prefer the Docker-based Agent installation?
body: <p>According to the <a href="https://docs.datadoghq.com/integrations/docker_daemon/#installation" rel="nofollow noreferrer">DataDog Docker Integration Docs</a>:</p>
  
  <blockquote>
    <p>There are two ways to run the [DataDog] Agent: directly on each host, or within a docker-dd-agent container. We recommend the latter.</p>
  </blockquote>
  
  <p>Why is a Docker-based agent installation preferred over just installing the DataDog agent directly as a service on the box that's running the Docker containers?</p>