
Databend 一体化 Docker 镜像提供了便捷的方式部署和运行 Databend 现代云数据仓库,支持多种存储后端和灵活的配置选项。
linux/amd64,linux/arm64
QUERY_CONFIG_FILE
QUERY_DEFAULT_USER
QUERY_DEFAULT_PASSWORD
QUERY_STORAGE_TYPE
AWS_S3_ENDPOINT
AWS_S3_BUCKET
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
MINIO_ENABLED
docker run -p 8000:8000 datafuselabs/databend
docker run \ -p 8000:8000 \ -e QUERY_DEFAULT_USER=databend \ -e QUERY_DEFAULT_PASSWORD=databend \ datafuselabs/databend
注意: 如果未指定
QUERY_DEFAULT_USER或QUERY_DEFAULT_PASSWORD,将添加一个默认的 root 用户,无密码。
注意: 设置 MINIO_ENABLED 将触发运行时下载 MinIO 二进制文件。
docker run \ -p 8000:8000 \ -p 9000:9000 \ -e MINIO_ENABLED=true \ -v minio_data_dir:/var/lib/minio \ datafuselabs/databend
docker run \ -p 8000:8000 \ -e QUERY_STORAGE_TYPE=s3 \ -e AWS_S3_ENDPOINT="http://some_s3_endpoint" \ -e AWS_S3_BUCKET=some_bucket \ -e AWS_ACCESS_KEY_ID=some_key \ -e AWS_SECRET_ACCESS_KEY=some_secret \ datafuselabs/databend
docker run \ -p 8000:8000 \ -v meta_storage_dir:/var/lib/databend/meta \ -v query_storage_dir:/var/lib/databend/query \ -v log_dir:/var/log/databend \ datafuselabs/databend
docker run \ -p 8000:8000 \ -e QUERY_CONFIG_FILE=/etc/databend/mine.toml \ -v query_config_file:/etc/databend/mine.toml \ datafuselabs/databend
有两种方式可以通过 Docker 连接到 Databend:
shelldocker run \ --net=host \ datafuselabs/databend
❯ bendsql 欢迎使用 BendSQL。 尝试以 root 用户连接到 localhost:8000。 已连接到 DatabendQuery v1.1.2-nightly-8ade21e4669e0a2cc100615247705feacdf76c5b(rust-1.70.0-nightly-2023-04-15T16:08:52.195357424Z) bendsql>
❯ mysql -P3307 -uroot --protocol=tcp Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.26-v0.9.41-nightly-0edcc16(rust-1.68.0-nightly-2023-02-17T01:35:15.271479Z) 0 Copyright (c) 2000, 2023, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
shelldocker run \ -p 8000:8000 \ -p 3307:3307 \ -e QUERY_DEFAULT_USER=databend \ -e QUERY_DEFAULT_PASSWORD=databend \ datafuselabs/databend
❯ bendsql -u databend -p databend 欢迎使用 BendSQL。 尝试以 databend 用户连接到 localhost:8000。 已连接到 DatabendQuery v1.1.2-nightly-8ade21e4669e0a2cc100615247705feacdf76c5b(rust-1.70.0-nightly-2023-04-15T16:08:52.195357424Z) bendsql>
❯ mysql -P3307 -udatabend -pdatabend --protocol=tcp mysql: [Warning] Using a password on the command line interface can be insecure. Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.26-v0.9.41-nightly-0edcc16(rust-1.68.0-nightly-2023-02-17T01:35:15.271479Z) 0 Copyright (c) 2000, 2023, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
此方法也可配合
--net=host使用。


探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务