Clickhouse: Docker - add clickhouse-client to image

Created on 11 Mar 2017  路  5Comments  路  Source: ClickHouse/ClickHouse

Docker tag - latest

Please add to image clickhouse-client.

Most helpful comment

By the way, clickhouse-client is just a symlink to clickhouse.
You could also run client as clickhouse --client.

All 5 comments

Why are you can't use yandex/clickhouse-client image? I don't think that a client should be a part of server image.

By the way, clickhouse-client is just a symlink to clickhouse.
You could also run client as clickhouse --client.

Wow. Maybe that could be better documented?

You could also run client as clickhouse --client.

Not in the current Docker image:

$ docker exec -ti clickhouse_1 /usr/bin/clickhouse --client
ClickHouse client version 1.1.54276.
Connecting to localhost:9000.
Connected to ClickHouse server version 1.1.54276.

Poco::Exception: File not found: /nonexistent/.clickhouse-client-history

It works with root user:

$ docker exec -ti -u root clickhouse_1 /usr/bin/clickhouse --client

For connecting to the clickhouse-server container as part of docker-compose

docker-compose exec -u 0 << service name or container id >> bash

run clickhouse client inside the container

Was this page helpful?
0 / 5 - 0 ratings