Docker tag - latest
Please add to image clickhouse-client.
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
Most helpful comment
By the way,
clickhouse-clientis just a symlink toclickhouse.You could also run client as
clickhouse --client.