Clickhouse: docker can't start with lastest version

Created on 15 Oct 2018  路  4Comments  路  Source: ClickHouse/ClickHouse

As what the error logs says:

Status: Downloaded newer image for yandex/clickhouse-server:18.14
Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = File not found: ${CLICKHOUSE_CONFIG}, e.what() = File not found

 docker run  --name some-clickhouse-server  --ulimit nofile=262144:262144 yandex/clickhouse-server
mkdir: cannot create directory '': No such file or directory
chown: cannot access '': No such file or directory
Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = File not found: ${CLICKHOUSE_CONFIG}, e.what() = File not found

both latest and yandex/clickhouse-server:18.14 has the same error.
yandex/clickhouse-server:1 is OK.

Most helpful comment

All 4 comments

If you use ClickHouse with docker compose you can fix this by adding the correct upstart command. Here's my docker-compose.yml:

clickhouse:
    ulimits:
      nproc: 65535
      nofile:
        soft: 20000
        hard: 362144
    image: yandex/clickhouse-server
    logging:
      driver: json-file
    volumes:
      - /dev/shm:/dev/shm
      - ./config.xml:/etc/clickhouse-server/config.xml
    ports:
      - "8123:8123"
      - "9000:9000"
    command: /usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml

Fixed starting from 18.14.9

yes ,it works .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vvp83 picture vvp83  路  3Comments

atk91 picture atk91  路  3Comments

vixa2012 picture vixa2012  路  3Comments

lttPo picture lttPo  路  3Comments

innerr picture innerr  路  3Comments