# Filebeat docker image build failure

**URL:** <https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967>\
**Category:** Beats\
**Created:** [October 23, 2017, 8:50pm UTC](https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967 "2017-10-23T20:50:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![4xy](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@4xy](https://discuss.elastic.co/u/4xy)\
**Post date:** [October 23, 2017, 8:50pm UTC](https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967/1 "2017-10-23T20:50:37Z")

</div>

I tried to build filebeat docker container image from this repo  
[GitHub - elastic/beats-docker: Official Beats Docker images](https://github.com/elastic/beats-docker).

I ended up with this.

> Step 4 : RUN curl -Lso - [https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.0.0-alpha1-linux-x86\_64.tar.gz](https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.0.0-alpha1-linux-x86_64.tar.gz) | tar zxf - -C /tmp && mv /tmp/auditbeat-7.0.0-alpha1-linux-x86\_64 /usr/share/auditbeat  
> ---\> Running in e64e1ab4e27b
> 
> gzip: stdin: not in gzip format  
> tar: Child returned status 1  
> tar: Error is not recoverable: exiting now  
> The command '/bin/sh -c curl -Lso - [https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.0.0-alpha1-linux-x86\_64.tar.gz](https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.0.0-alpha1-linux-x86_64.tar.gz) | tar zxf - -C /tmp && mv /tmp/auditbeat-7.0.0-alpha1-linux-x86\_64 /usr/share/auditbeat' returned a non-zero code: 2  
> Makefile:51: recipe for target 'auditbeat' failed  
> make: \*\*\* [auditbeat] Error 2

The reason is the broken links like  
[https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.0.0-alpha1-linux-x86\_64.tar.gz](https://artifacts.elastic.co/downloads/beats/auditbeat/auditbeat-7.0.0-alpha1-linux-x86_64.tar.gz)

Do you support this repo?

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [October 23, 2017, 9:07pm UTC](https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967/2 "2017-10-23T21:07:49Z")

</div>

You should probably use a different branch, we use master for next releases, so auditbeat-7.0.0 is not yet released. Have a look to branches and choose the one you are interested on. For latest non-production release (6.0.0-rc2) use `6.0` branch

---

<div class="post-metadata">

**Author:** ![4xy](https://avatars.discourse-cdn.com/v4/letter/4/34f0e0/32.png) [@4xy](https://discuss.elastic.co/u/4xy)\
**Post date:** [October 24, 2017, 4:22pm UTC](https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967/3 "2017-10-24T16:22:38Z")

</div>

Sorry, I forgot to say that I tried 6.x, 6.0 they doesn't work. But today I've found out that 5.6 works fine. Is this the latest version of the filebeat?

---

<div class="post-metadata">

**Author:** ![mgreau](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mgreau/32/22607_2.png) [@mgreau](https://discuss.elastic.co/u/mgreau)\
**Post date:** [October 26, 2017, 11:09am UTC](https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967/4 "2017-10-26T11:09:27Z")

</div>

Hi @4xy

The **6.0.0-rc2** version has not been released yet that's why the "default" build on the 6.0 branch doesn't work.

So, you can use the **ELASTIC\_VERSION** to set the version that you want to build, for example

```
 git checkout -b 6.0 origin/6.0
 ELASTIC_VERSION=6.0.0-rc1 make

```

Then the build should work (all tests should succeed and the beats images available locally)

```
...
tests/test_user.py::test_group_properties[docker://packetbeat] PASSED
tests/test_user.py::test_user_properties[docker://packetbeat] PASSED
===============================================================================================
 115 passed in 71.20 seconds 
===============================================================================================

$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.elastic.co/beats/packetbeat 6.0.0-rc1 d7d314c42abb 3 minutes ago 414MB
docker.elastic.co/beats/metricbeat 6.0.0-rc1 10171a959507 3 minutes ago 474MB
docker.elastic.co/beats/heartbeat 6.0.0-rc1 8ca424dc2170 3 minutes ago 390MB
docker.elastic.co/beats/filebeat 6.0.0-rc1 693febdf0ade 4 minutes ago 348MB
docker.elastic.co/beats/auditbeat 6.0.0-rc1 04f25d20ec01 4 minutes ago 345MB

```

I hope that helps you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 13, 2017, 8:51pm UTC](https://discuss.elastic.co/t/filebeat-docker-image-build-failure/104967/5 "2017-11-13T20:51:00Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
