Docker instruction

This commit is contained in:
Denis Zheleztsov 2017-07-20 15:32:23 +03:00
parent 9a1be42481
commit aa1342c22a

View File

@ -2,7 +2,6 @@
[![Build Status](https://travis-ci.org/Difrex/zoorest.svg?branch=master)](https://travis-ci.org/Difrex/zoorest) [![Build Status](https://travis-ci.org/Difrex/zoorest.svg?branch=master)](https://travis-ci.org/Difrex/zoorest)
Zookeeper HTTP rest API Zookeeper HTTP rest API
<!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-generate-toc again --> <!-- markdown-toc start - Don't edit this section. Run M-x markdown-toc-generate-toc again -->
**Table of Contents** **Table of Contents**
@ -25,13 +24,13 @@ Zookeeper HTTP rest API
- [Docker build](#docker-build) - [Docker build](#docker-build)
- [Binary file](#binary-file) - [Binary file](#binary-file)
- [Docker image](#docker-image) - [Docker image](#docker-image)
- [Get docker image](#get-docker-image)
- [AUTHORS](#authors) - [AUTHORS](#authors)
- [LICENSE](#license) - [LICENSE](#license)
- [DONATE](#donate) - [DONATE](#donate)
<!-- markdown-toc end --> <!-- markdown-toc end -->
## Usage ## Usage
``` ```
@ -246,6 +245,18 @@ cd zoorest
Image will be tagged as zoorest:latest Image will be tagged as zoorest:latest
## Get docker image
Pull image
```
docker pull lessmore/zoorest
```
And run it
```
/usr/bin/docker run -d -p 8889:8889 --name zoorest lessmore/zoorest:latest --zk zoo1:2181,zoo2:2181,zoo3:2181 --path /zoorest/jail --listen 0.0.0.0:8889 -mc -mchosts mc1:11211,mc2:11211,mc3:11211
```
# AUTHORS # AUTHORS
Denis Zheleztsov <difrex.punk@gmail.com> Denis Zheleztsov <difrex.punk@gmail.com>