This error is coming when we are build elastic search 7.4 version code.use gradle version 5.6.2 and java version 12 in windows

Configure project :x-pack:test:smb-fixture
Tests for :x-pack:test:smb-fixture require docker-compose at /usr/local/bin/docker-compose or /usr/bin/docker-compose but none could be found so these will be skipped

Configure project :x-pack:qa:third-party:active-directory
Tests for :x-pack:qa:third-party:active-directory require docker-compose at /usr/local/bin/docker-compose or /usr/bin/docker-compose but none could be found so these will be skipped

FAILURE: Build failed with an exception.

  • What went wrong:
    Docker (checked [/usr/bin/docker,/usr/local/bin/docker]) is required to run the following tasks:
    :distribution:docker:buildDockerImage
    :distribution:docker:buildOssDockerImage
    you can address this by attending to the reported issue, removing the offending tasks from being executed, or by passing -Dbuild.docker=false

  • 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.

  • Get more help at https://help.gradle.org

BUILD FAILED in 35s