From 5e863524642e235d8afb6d542497eb79f168abd2 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 13 Oct 2016 21:34:03 -0700 Subject: [PATCH] doc: Fix docker.md instructions and words. --- docs/Docker.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/Docker.md b/docs/Docker.md index 19cc1b8bd..c2eed9142 100644 --- a/docs/Docker.md +++ b/docs/Docker.md @@ -1,6 +1,6 @@ # Minio Docker Quickstart Guide [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/minio/minio?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) -## 1. Test Minio Docker Container +## 1. Test Minio on Docker. Minio generates new access and secret keys each time you run this command. Container state is lost after you end this session. This mode is only intended for testing purpose. ```sh @@ -9,7 +9,7 @@ docker run -p 9000:9000 minio/minio server /export ``` -## 2. Run One Minio Docker Container +## 2. Run Minio Standalone on Docker. Minio container requires a persistent volume to store configuration and application data. Following command maps local persistent directories from the host OS to virtual config `~/.minio` and export `/export` directories. @@ -22,7 +22,7 @@ docker run -p 9000:9000 --name minio1 \ ``` -## 3. Custom Access and Secret Keys +## 3. Run Minio Standalone on Docker with Custom Access and Secret Keys To override Minio's auto-generated keys, you may pass secret and access keys explicitly as environment variables. Minio server also allows regular strings as access and secret keys. @@ -37,16 +37,14 @@ docker run -p 9000:9000 --name minio1 \ ``` -## 4. Run Minio in clustered mode +## 4. Run Distributed Minio on Docker -Let's consider that we need to run 4 minio servers inside different docker containers. The `docker-compose.yml` file in the root of the project sets this up using the [docker-compose](https://docs.docker.com/compose/) tool. +To run 4 minio servers inside different docker containers using [docker-compose](https://docs.docker.com/compose/). Please download [docker-compose.yml](https://raw.githubusercontent.com/minio/minio/master/docker-compose.yml) to your project root directory. -### Start Minio docker instances +### Run `docker-compose` -From the root directory of the project, run: - -``` shell -$ docker-compose up +```sh +docker-compose up ``` -Each instance's minio web-server is accessible on the host at ports 9001 through 9004, so you may access the first one at http://localhost:9001/ +Each instance is accessible on the host at ports 9001 through 9004, proceed to access the Web browser at http://localhost:9001/