title: FileBeat Not Starting Inside Docker Container
body: <p>We have created a DockerFile to run a application along with FileBeat. The Docker Image is being successfully built and when I start the container my application is running fine. However FileBeat is not starting when the container starts.</p>
  
  <p>We have to manually start FileBeat Service by using docker exec.</p>
  
  <p>Below is my Docker File.</p>
  
  <pre><code>FROM microsoft/aspnetcore:2.0.3
  COPY pub/ /app/
  WORKDIR /app
  
  WORKDIR /usr/local/filebeat
  
  RUN curl -L -O https://artifacts.elastic.co/downloads/beats/filebeat/filebeat-6.2.4-amd64.deb
  RUN dpkg -i filebeat-6.2.4-amd64.deb
  
  CMD service filebeat start
  
  WORKDIR /app
  
  ENTRYPOINT ["dotnet", "Application.dll"]
  </code></pre>