peasead / elastic-container

Stand up a simple Elastic container with Kibana, Fleet, and the Detection Engine
Apache License 2.0
395 stars 71 forks source link

[BUG] had to change "docker compose" to "docker-compose" #13

Closed dmaynor closed 2 years ago

dmaynor commented 2 years ago

Describe the bug Running ./elastic-container.sh -v start would result in an error from docker. ➜ elastic-container git:(main) ✗ ./elastic-container.sh -v start
Passphrase has been reset. Proceeding. Starting Elastic Stack network and containers unknown shorthand flag: 'd' in -d See 'docker --help'.

To Reproduce Steps to reproduce the behavior:

  1. git clone the repo locally and cd to it.
  2. run ./elastic-container.sh
  3. See error

Expected behavior Docker containers are provisioned and started.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context I saw a commuted change that replaced "docker-compose" with "docker compose". I had to switch it back and everything ran fine.

peasead commented 2 years ago

Hey @dmaynor, thanks for the Issue.

Do you have the docker-compose-plugin installed from the Docker documentation?

peasead commented 2 years ago

You can check apt-cache policy docker-compose-plugin on Ubuntu or dnf list installed | grep docker-compose-plugin on RPM distros.

8 had the same problem, the Docker documentation fixed their issue.