Merge pull request #71 from yuri-karpovich/master

Dockerfile: "sh: 1: ulimit: error setting limit (Operation not permitted)" error fixing
This commit is contained in:
alexey-milovidov 2016-08-12 22:05:38 +04:00 committed by GitHub
commit d141a91667
2 changed files with 3 additions and 4 deletions

View File

@ -11,7 +11,6 @@ RUN chown -R metrika /etc/clickhouse-server/
USER metrika
EXPOSE 9000 8123 9009
ENV FILE_DESCRIPTORS_LIMIT 262144
ENV CLICKHOUSE_CONFIG /etc/clickhouse-server/config.xml
CMD ["sh", "-c", "ulimit -n ${FILE_DESCRIPTORS_LIMIT} && /usr/bin/clickhouse-server --config=${CLICKHOUSE_CONFIG}"]
CMD ["sh", "-c", "/usr/bin/clickhouse-server --config=${CLICKHOUSE_CONFIG}"]

View File

@ -12,7 +12,7 @@ For more information and documentation see https://clickhouse.yandex/.
### start server instance
```bash
$ docker run -d --name some-clickhouse-server yandex/clickhouse-server
$ docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 yandex/clickhouse-server
```
### connect to it from a native client
@ -30,7 +30,7 @@ ClickHouse configuration represented with a file "config.xml" ([documentation](h
### start server instance with custom configuration
```bash
$ docker run -d --name some-clickhouse-server -v /path/to/your/config.xml:/etc/clickhouse-server/config.xml yandex/clickhouse-server
$ docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 -v /path/to/your/config.xml:/etc/clickhouse-server/config.xml yandex/clickhouse-server
```
## License