Elastic-agent not fond when running in Docker

Hi All,

I am running my ELK setup on a Docker Swarm cluster and I have Kibana, Elasticsearch, Metricbeats all up and running fine. I am trying to setup fleet and deploy my first elastic agent. The container for docker.elastic.co/beats/elastic-agent:8.5.0 keeps restarting and the only log is:

/usr/local/bin/docker-entrypoint: line 14: exec: elastic-agent: not found

The code for my docker compose is:

version: "3.8"
services:
...
  fleet-server:
    image: docker.elastic.co/beats/elastic-agent:8.5.0
    user: elastic-agent
    environment:
      FLEET_SERVER_ENABLE: "true"
      FLEET_SERVER_SERVICE_TOKEN: <token>
      FLEET_SERVER_ELASTICSEARCH_HOST: http://{{ elk_elastic_host }}:{{ elk_elastic_port }}
      FLEET_SERVER_POLICY_ID: "fleet-server-policy"
    networks:
      - elastic
    deploy:
      labels:
        - com.df.notify=true
        - com.df.distribute=true
        - com.df.servicePath=/
        - com.df.port={{ elk_fleet_port }}
        - com.df.srcPort={{ elk_fleet_src_port }}
...

Even when I follow Elastics' own documentation I get the same error!

Any help would be great as at this point I ready to give up on ELK!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.