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.
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
Will be fixed in next release (soon)
https://github.com/yandex/ClickHouse/commit/394b9760f499f12bf478ebe61b48ef3a2d107e94
Fixed starting from 18.14.9
yes ,it works .
Most helpful comment
Will be fixed in next release (soon)
https://github.com/yandex/ClickHouse/commit/394b9760f499f12bf478ebe61b48ef3a2d107e94