Update Docker.md

This commit is contained in:
Harshavardhana 2016-03-15 10:01:58 -07:00
parent 15b5f4d7a3
commit 2e3e164f16
1 changed files with 2 additions and 2 deletions

View File

@ -28,10 +28,10 @@ docker create -v /export --name minio-export minio/my-minio /bin/true
You can also map ``.minio`` directory containing authentication information. You can also map ``.minio`` directory containing authentication information.
```bash ```bash
docker create -v /export --name minio-export -v /.minio --name minio-config minio/my-minio /bin/true docker create -v /export --name minio-export -v /root/.minio --name minio-config minio/my-minio /bin/true
``` ```
You can then use the `--volumes-from` flag to mount the `/export` and ``/.minio`` volume in another container. You can then use the `--volumes-from` flag to mount the `/export` and ``/root/.minio`` volume in another container.
```bash ```bash
docker run -p 9000 --volumes-from minio-export --volumes-from minio-config --name minio-server1 minio/my-minio docker run -p 9000 --volumes-from minio-export --volumes-from minio-config --name minio-server1 minio/my-minio