mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
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:
commit
d141a91667
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user