提交 d141a916 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #71 from yuri-karpovich/master

Dockerfile: "sh: 1: ulimit: error setting limit (Operation not permitted)" error fixing
......@@ -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}"]
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册