# Gradle build task fails with docker errors

**URL:** <https://discuss.elastic.co/t/gradle-build-task-fails-with-docker-errors/253957>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [November 1, 2020, 6:33pm UTC](https://discuss.elastic.co/t/gradle-build-task-fails-with-docker-errors/253957 "2020-11-01T18:33:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankurtrapasiya](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ankurtrapasiya/32/78233_2.png) [@ankurtrapasiya](https://discuss.elastic.co/u/ankurtrapasiya)\
**Post date:** [November 1, 2020, 6:33pm UTC](https://discuss.elastic.co/t/gradle-build-task-fails-with-docker-errors/253957/1 "2020-11-01T18:33:29Z")

</div>

Hi,

I set-up elasticsearch codebase on my local and I see that my setup fails when I try to do gradle build in IDE.

Below is the error that I receive.

```auto
    Docker (checked [/usr/bin/docker, /usr/local/bin/docker]) is required to run the following tasks: 
    :distribution:docker:buildAarch64DockerImage
    :distribution:docker:buildAarch64OssDockerImage
    :distribution:docker:buildAarch64UbiDockerImage
    :distribution:docker:buildDockerImage
    :distribution:docker:buildOssDockerImage
    :distribution:docker:buildUbiDockerImage
    you can address this by attending to the reported issue, or removing the offending tasks from being executed.

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

```

Can you please suggest a resolution for the issue?

Thank you,  
Ankur

---

<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 29, 2020, 6:33pm UTC](https://discuss.elastic.co/t/gradle-build-task-fails-with-docker-errors/253957/2 "2020-11-29T18:33:50Z")

</div>

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