# How to Add custom integration into elastic-agent integration package registry

**URL:** <https://discuss.elastic.co/t/how-to-add-custom-integration-into-elastic-agent-integration-package-registry/326740>\
**Category:** Elastic Agent\
**Tags:** integrations\
**Created:** [March 1, 2023, 8:53am UTC](https://discuss.elastic.co/t/how-to-add-custom-integration-into-elastic-agent-integration-package-registry/326740 "2023-03-01T08:53:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurangzeb99](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@aurangzeb99](https://discuss.elastic.co/u/aurangzeb99)\
**Post date:** [March 1, 2023, 8:53am UTC](https://discuss.elastic.co/t/how-to-add-custom-integration-into-elastic-agent-integration-package-registry/326740/1 "2023-03-01T08:53:21Z")

</div>

I am Following this guide  
[Build an integration](https://www.elastic.co/guide/en/integrations-developer/current/build-it.html)

build is successfully done using the command

```auto
elastic-package build

```

getting error

```auto
Custom build packages directory found: /opt/elastic-package/build/packages
Packages from the following directories will be loaded into the package-registry:
- built-in packages (package-storage:snapshot Docker image)
- /opt/elastic-package/build/packages
Error: booting up the stack failed: building docker images failed: running command failed: running Docker Compose build command failed: exit status 15

```

---

<div class="post-metadata">

**Author:** ![kpollich](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kpollich/32/93788_2.png) [@kpollich](https://discuss.elastic.co/u/kpollich)\
**Post date:** [March 1, 2023, 9:29pm UTC](https://discuss.elastic.co/t/how-to-add-custom-integration-into-elastic-agent-integration-package-registry/326740/2 "2023-03-01T21:29:05Z")

</div>

Hi @aurangzeb99 - could you confirm that you're running the Docker daemon and `which docker-compose` reports a valid path? The `elastic-package stack` command requires a functioning Docker environment.

> **[GitHub - elastic/elastic-package: elastic-package - Command line tool for...](https://github.com/elastic/elastic-package#elastic-package-stack)**
>
> elastic-package - Command line tool for developing Elastic Integrations - GitHub - elastic/elastic-package: elastic-package - Command line tool for developing Elastic Integrations

There's also a possibility that if Docker is running as expected, your memory or CPU limits may be too low by default. It may be worthwhile to increase the CPU, memory, and swap allocations in your Docker settings. See the [Docker docs](https://docs.docker.com/desktop/settings/linux/) for more information.

---

<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:** [March 29, 2023, 9:29pm UTC](https://discuss.elastic.co/t/how-to-add-custom-integration-into-elastic-agent-integration-package-registry/326740/3 "2023-03-29T21:29:21Z")

</div>

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