1、背景

docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers).

2、不用梯子配置

"registry-mirrors": ["https://docker.registry.cyou",
"https://docker-cf.registry.cyou",
"https://dockercf.jsdelivr.fyi",
"https://docker.jsdelivr.fyi",
"https://dockertest.jsdelivr.fyi",
"https://mirror.aliyuncs.com",
"https://dockerproxy.com",
"https://mirror.baidubce.com",
"https://docker.m.daocloud.io",
"https://docker.nju.edu.cn",
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.mirrors.ustc.edu.cn",
"https://mirror.iscas.ac.cn",
"https://docker.rainbond.cc"]

也可加自己的阿里云镜像
image.png

3、安装clickhouse

docker pull clickhouse/clickhouse-server:22.11.5.15

docker run -d --name some-clickhouse-server -p 9000:9000 -p 8123:8123 --ulimit nofile=262144:262144 clickhouse/clickhouse-server:22.11.5.15

docker exec -it some-clickhouse-server clickhouse-client

create table user_info(name String,address String) ENGINE = MergeTree() order by name;

journey
32 声望22 粉丝

下一篇 »
JWT入门