docker 安装 clickhouse
简单记录一下
docker run -d --name clickhouse-server --ulimit nofile=262144:262144 \
-p 8123:8123 \
yandex/clickhouse-server:21.4
docker cp 87361095c566:/etc/clickhouse-server /usr/local/docker/clickhouse/conf
docker cp 87361095c566:/var/lib/clickhouse /usr/local/docker/clickhouse/data
docker cp 87361095c566:/var/log/clickhouse-server /usr/local/docker/clickhouse/log
## 修改 conf/user.xml 中默认的密码
## 修改 conf/config.xml 中 <listen_host>::</listen_host>
docker run -d --name clickhouse-server --ulimit nofile=262144:262144 \
-v /usr/local/docker/clickhouse/conf:/etc/clickhouse-server \
-v /usr/local/docker/clickhouse/data:/var/lib/clickhouse \
-v /usr/local/docker/clickhouse/log:/var/log/clickhouse-server \
-p 8123:8123 \
yandex/clickhouse-server:21.4
## 测试是否运行
echo 'select timezone(), version() FORMAT TabSeparatedWithNamesAndTypes' | curl 'http://default:123456@localhost:8123/' -d @-