Run update.sh

This commit is contained in:
Docker Library Bot 2016-10-18 15:32:52 -07:00
parent 1e1a764ccb
commit 3591aacfca
2 changed files with 28 additions and 2 deletions

View File

@ -25,6 +25,8 @@ This image is built from official rootfs tarballs provided by Canonical (specifi
The `ubuntu:latest` tag points to the "latest LTS", since that's the version recommended for general use.
Along a similar vein, the `ubuntu:devel` tag is an alias for whichever release the "devel" suite on the mirrors currently points to, as determined by the following one-liner: `wget -qO- http://archive.ubuntu.com/ubuntu/dists/devel/Release | awk -F ': ' '$1 == "Codename" { print $2; exit }'`
## `/etc/apt/sources.list`
### `ubuntu:16.04`

View File

@ -21,7 +21,7 @@ Apache ZooKeeper is a software project of the Apache Software Foundation, provid
$ docker run --name some-zookeeper --restart always -d zookeeper
This image includes `EXPOSE 2181` (the zookeeper port), so standard container linking will make it automatically available to the linked containers. Since the Zookeeper "fails fast" it's better to always restart it.
This image includes `EXPOSE 2181 2888 3888` (the zookeeper client port, follower port, election port respectively), so standard container linking will make it automatically available to the linked containers. Since the Zookeeper "fails fast" it's better to always restart it.
## Connect to Zookeeper from an application in another Docker container
@ -80,7 +80,31 @@ Zookeeper configuration is located in `/conf`. One way to change it is mounting
## Environment variables
Variables below are mandatory if you want to run Zookeeper in replicated mode.
ZooKeeper recommended defaults are used if `zoo.cfg` file is not provided. They can be overridden using the following environment variables.
$ docker run -e "ZOO_INIT_LIMIT=10" --name some-zookeeper --restart always -d 31z4/zookeeper
### `ZOO_TICK_TIME`
Defaults to `2000`. ZooKeeper's `tickTime`
> The length of a single tick, which is the basic time unit used by ZooKeeper, as measured in milliseconds. It is used to regulate heartbeats, and timeouts. For example, the minimum session timeout will be two ticks
### `ZOO_INIT_LIMIT`
Defaults to `5`. ZooKeeper's `initLimit`
> Amount of time, in ticks (see tickTime), to allow followers to connect and sync to a leader. Increased this value as needed, if the amount of data managed by ZooKeeper is large.
### `ZOO_SYNC_LIMIT`
Defaults to `2`. ZooKeeper's `syncLimit`
> Amount of time, in ticks (see tickTime), to allow followers to sync with ZooKeeper. If followers fall too far behind a leader, they will be dropped.
## Replicated mode
Environment variables below are mandatory if you want to run Zookeeper in replicated mode.
### `ZOO_MY_ID`