Skip to content

Start-local version check fails on WSL2 #98

@ndrwrbgs

Description

@ndrwrbgs

Type of issue

Inaccurate

What documentation page is affected

https://www.elastic.co/docs/deploy-manage/deploy/self-managed/local-development-installation-quickstart

What happened?

Text as of bug:

[Prerequisites](https://www.elastic.co/docs/deploy-manage/deploy/self-managed/local-development-installation-quickstart#local-dev-prerequisites)
If you don’t have Docker installed, [download and install Docker Desktop](https://www.docker.com/products/docker-desktop) for your operating system.
If you’re using Microsoft Windows, then install [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install).
[Step 1: Run start-local script](https://www.elastic.co/docs/deploy-manage/deploy/self-managed/local-development-installation-quickstart#local-dev-quick-start)
To set up Elasticsearch and Kibana locally, run the start-local script in the command line:

curl -fsSL https://elastic.co/start-local | sh
After running the script, you can access Elastic services at the following endpoints:

Elasticsearch: http://localhost:9200/
Kibana: http://localhost:5601/
That's it! There's no step 2.

The steps as documented are:

  • Have Docker installed
  • if (Windows) then install WSL
  • curl -fsSL https://elastic.co/start-local | sh
  • "That's it! There's no step 2"

However, the start-local script in wsl is finding the host docker command and outputs this after a version check

  ______ _           _   _
 |  ____| |         | | (_)
 | |__  | | __ _ ___| |_ _  ___
 |  __| | |/ _` / __| __| |/ __|
 | |____| | (_| \__ \ |_| | (__
 |______|_|\__,_|___/\__|_|\___|
-------------------------------------------------
🚀 Run Elasticsearch and Kibana for local testing
-------------------------------------------------

ℹ️  Do not use this script in a production environment

Unfortunately we don't support docker compose . The minimum required version is 1.29.0.
You can migrate you docker compose from https://docs.docker.com/compose/migrate/
sh: 235: folder_to_clean: parameter not set

If I understand it correctly, WSL is running inside of docker itself and docker-on-wsl doesn't make sense, so was the script meant to be running in windows (which doesn't have sh)?

If I understand right then the action for the bug is one of:

  • Modify the document to remove the suggestion Windows/WSL will work with these directions
  • Update the script to work from within WSL (docker-compose will not work as normal)
  • Provide a windows start local script?

cc @ezimeul who seems most active on the script, in case docs & code repo are organizationally distant

Additional info

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions