From c2afa6491da31abdafba54a995a32307fa7c6c58 Mon Sep 17 00:00:00 2001 From: Yuce Tekol Date: Tue, 21 Feb 2017 23:08:41 +0300 Subject: [PATCH] Updated README for docker usage --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 2079010ec..19221e003 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,20 @@ The remaining configuration options should be the same on every node in the clus `[[cluster.node]]`: specifies each node within the cluster +## Docker + +You can create a Pilosa container using `make docker` or equivalently: +``` +docker build -t pilosa:latest . +``` + +You can run a temporary container using: +``` +docker run -it --rm --name pilosa -p 15000:15000 pilosa:latest +``` + +When you click `Ctrl+C` to stop the container, the container and the data in the container will be erased. You can leave out `--rm` flag to keep the data in the container. See [Docker documentation](https://docs.docker.com) for other options. + ## Usage You can interact with Pilosa via HTTP requests to the host:port on which you have Pilosa running.