diff --git a/docs/installation.md b/docs/installation.md index 9bd6f9bef..69de1376e 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -14,7 +14,7 @@ Pilosa is currently available for [MacOS](#installing-on-macos) and [Linux](#ins ### Installing on MacOS -There are four ways to install Pilosa on MacOS: Use [Homebrew](https://brew.sh/) (recommended), download the binary, build from source, or use Docker. +There are four ways to install Pilosa on MacOS: Use [Homebrew](https://brew.sh/) (recommended), download the binary, build from source, or use [Docker](#docker). #### Use Homebrew @@ -188,27 +188,6 @@ There are four ways to install Pilosa on MacOS: Use [Homebrew](https://brew.sh/) You're good to go! -#### Use Docker - -1. Install Docker for Mac. - -2. Confirm that the Docker daemon is running in the background: - ``` - docker version - ``` - - If you don't see the server listed, start the Docker application. - -3. Pull the official Pilosa image from Docker Hub: - ``` - docker pull pilosa/pilosa:latest - ``` - -4. Make sure Pilosa is installed successfully: - ``` - docker run --rm pilosa/pilosa:latest help - ``` - #### What's next? Head over to the [Getting Started](../getting-started/) guide to create your first Pilosa index. @@ -216,7 +195,7 @@ Head over to the [Getting Started](../getting-started/) guide to create your fir ### Installing on Linux -There are three ways to install Pilosa on Linux: download the binary (recommended), build from source, or use Docker. +There are three ways to install Pilosa on Linux: download the binary (recommended), build from source, or use [Docker](#docker). #### Download the Binary @@ -339,43 +318,22 @@ There are three ways to install Pilosa on Linux: download the binary (recommende You're good to go! - -#### Use Docker - -1. Install Docker. - -2. Confirm that the Docker daemon is running in the background: - ``` - docker version - ``` - - If you don't see the server listed, start the Docker application. - -3. Pull the official Pilosa image from Docker Hub: - ``` - docker pull pilosa/pilosa:latest - ``` - -4. Make sure Pilosa is installed successfully: - ``` - docker run --rm pilosa/pilosa:latest help - ``` - #### What's next? Head over to the [Getting Started](../getting-started/) guide to create your first Pilosa index. - + +6. Check that it is accessible from outside the container. + + Run the following in a separate terminal: + ``` + curl localhost:10101/schema + ``` + + If that returns `{"indexes":null}` or similar, then Pilosa is accessible from outside the container. Otherwise check that you have correctly typed `-p 10101:10101` when running the Pilosa container and the port mappings in VirtualBox is correct (Docker Toolbox only). + +7. When you want to terminate the Pilosa container, you can run the following: + ``` + docker stop pilosa + ``` + +#### What's next? + +Head over to the [Getting Started](../getting-started/) guide to create your first Pilosa index.