# How to skip docker related package when make beats

**URL:** <https://discuss.elastic.co/t/how-to-skip-docker-related-package-when-make-beats/256324>\
**Category:** Beats\
**Tags:** docker, metricbeat\
**Created:** [November 23, 2020, 8:55am UTC](https://discuss.elastic.co/t/how-to-skip-docker-related-package-when-make-beats/256324 "2020-11-23T08:55:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHU\_XU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chu_xu/32/45946_2.png) [@CHU\_XU](https://discuss.elastic.co/u/CHU_XU)\
**Post date:** [November 23, 2020, 8:55am UTC](https://discuss.elastic.co/t/how-to-skip-docker-related-package-when-make-beats/256324/1 "2020-11-23T08:55:54Z")

</div>

Hi there,

I'm trying to build metricbeat from source code. The build process needs some docker info with running docker cmds. But I'm building it in a image and I don't want to install docker in it.  
Also I just want a linux/amd64 dist and no need for docker dist.  
So can I skip the docker part when build beats?

Thanks

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 24, 2020, 5:18pm UTC](https://discuss.elastic.co/t/how-to-skip-docker-related-package-when-make-beats/256324/2 "2020-11-24T17:18:47Z")

</div>

What command are you using to build Beats?

---

<div class="post-metadata">

**Author:** ![CHU\_XU](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chu_xu/32/45946_2.png) [@CHU\_XU](https://discuss.elastic.co/u/CHU_XU)\
**Post date:** [November 25, 2020, 2:11am UTC](https://discuss.elastic.co/t/how-to-skip-docker-related-package-when-make-beats/256324/3 "2020-11-25T02:11:16Z")

</div>

I'm using 'PLATFORMS=linux/amd64 mage package'. A interesting fact, I comment those packages in package yaml file which I don't need and build, in master branch it worked, but in v7.8.0, I still saw some log about pulling docker images and finally I got this error:

`Error: running "docker run --env EXEC_UID=1001 --env EXEC_GID=121 --env GOFLAGS=-mod=vendor --rm --env MAGEFILE_VERBOSE= --env MAGEFILE_TIMEOUT= --env SNAPSHOT=false -v /home/vsts/work/1/s/beats:/go/src/github.com/elastic/beats -w /go/src/github.com/elastic/beats/metricbeat docker.elastic.co/beats-dev/golang-crossbuild:1.13.10-main-debian7 --build-cmd build/mage-linux-amd64 golangCrossBuild -p linux/amd64" failed with exit code 1`

---

<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:** [December 23, 2020, 4:11am UTC](https://discuss.elastic.co/t/how-to-skip-docker-related-package-when-make-beats/256324/4 "2020-12-23T04:11:22Z")

</div>

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