-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Initial commitment of documentation for clickhouse official image #2397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ClickHouse is the fastest and most resource efficient OSS database for real-time apps and analytics. |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,165 @@ | ||||||
# ClickHouse Server Docker Image | ||||||
|
||||||
## What is ClickHouse? | ||||||
|
||||||
%%LOGO%% | ||||||
|
||||||
ClickHouse is an open-source column-oriented DBMS (columnar database management system) for online analytical processing (OLAP) that allows users to generate analytical reports using SQL queries in real-time. | ||||||
|
||||||
ClickHouse works 100-1000x faster than traditional database management systems, and processes hundreds of millions to over a billion rows and tens of gigabytes of data per server per second. With a widespread user base around the globe, the technology has received praise for its reliability, ease of use, and fault tolerance. | ||||||
|
||||||
For more information and documentation see https://clickhouse.com/. | ||||||
|
||||||
## Versions | ||||||
|
||||||
- The `latest` tag points to the latest release of the latest stable branch. | ||||||
- Branch tags like `22.2` point to the latest release of the corresponding branch. | ||||||
- Full version tags like `22.2.3.5` point to the corresponding release. | ||||||
- The tag `head` is built from the latest commit to the default branch. | ||||||
- Each tag has optional `-alpine` suffix to reflect that it's built on top of `alpine`. | ||||||
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
||||||
### Compatibility | ||||||
|
||||||
- The amd64 image requires support for [SSE3 instructions](https://en.wikipedia.org/wiki/SSE3). Virtually all x86 CPUs after 2005 support SSE3. | ||||||
- The arm64 image requires support for the [ARMv8.2-A architecture](https://en.wikipedia.org/wiki/AArch64#ARMv8.2-A) and additionally the Load-Acquire RCpc register. The register is optional in version ARMv8.2-A and mandatory in [ARMv8.3-A](https://en.wikipedia.org/wiki/AArch64#ARMv8.3-A). Supported in Graviton >=2, Azure and GCP instances. Examples for unsupported devices are Raspberry Pi 4 (ARMv8.0-A) and Jetson AGX Xavier/Orin (ARMv8.2-A). | ||||||
Comment on lines
+15
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As the author of opencontainers/image-spec@2d95dde, I love this -- I wish we had a way to specify that the |
||||||
|
||||||
## How to use this image | ||||||
|
||||||
### start server instance | ||||||
|
||||||
```bash | ||||||
docker run -d --name some-clickhouse-server --ulimit nofile=262144:262144 clickhouse/clickhouse-server | ||||||
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
``` | ||||||
|
||||||
By default, ClickHouse will be accessible only via the Docker network. See the [networking section below](#networking). | ||||||
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
|
||||||
By default, starting above server instance will be run as the `default` user without password. | ||||||
|
||||||
### connect to it from a native client | ||||||
|
||||||
```bash | ||||||
docker run -it --rm --link some-clickhouse-server:clickhouse-server --entrypoint clickhouse-client clickhouse/clickhouse-server --host clickhouse-server | ||||||
|
docker run -it --rm --link some-clickhouse-server:clickhouse-server --entrypoint clickhouse-client clickhouse/clickhouse-server --host clickhouse-server | |
docker run -it --rm --link some-clickhouse-server:clickhouse-server --entrypoint clickhouse-client %%IMAGE%% --host clickhouse-server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting rid of --link
would require some good replacement, and off the top of my head, the docker network juggling doesn't give an easy-to-use alternative.
Can you suggest something here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#1441 was the best I could come up with (without having a common blurb for every image trying to explain Docker Networks), but it's very "go read the manual" so I'm not super happy about it either (I really like the --link
feature, fwiw 😭)
If you'd rather keep --link
that is OK 👍
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docker run -d -p 18123:8123 -p19000:9000 --name some-clickhouse-server --ulimit nofile=262144:262144 clickhouse/clickhouse-server | |
docker run -d -p 18123:8123 -p19000:9000 --name some-clickhouse-server --ulimit nofile=262144:262144 %%IMAGE%% |
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that they're optional, you don't happen to have any documentation about what each of these are used for and when/why users might want to set them (specific to ClickHouse behavior), do you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, is this URL worth adding here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line is added below:
Read more in [knowledge base](https://clickhouse.com/docs/knowledgebase/configure_cap_ipc_lock_and_cap_sys_nice_in_docker).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, for sure! I wonder if it could be improved to explain why, but that's not a blocker at all, just something I think would be useful. 😄 ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a part of the ClickHouse logs related to the capabilities on the KB page:
2023.04.19 08:04:10.022720 [ 1 ] {} <Information> Application: It looks like the process has no CAP_IPC_LOCK capability, binary mlock will be disabled. It could happen due to incorrect ClickHouse package installation. You could resolve the problem manually with 'sudo setcap cap_ipc_lock=+ep /usr/bin/clickhouse'. Note that it will not work on 'nosuid' mounted filesystems.
2023.04.19 08:04:10.065860 [ 1 ] {} <Information> Application: It looks like the process has no CAP_SYS_NICE capability, the setting 'os_thread_priority' will have no effect. It could happen due to incorrect ClickHouse package installation. You could resolve the problem manually with 'sudo setcap cap_sys_nice=+ep /usr/bin/clickhouse'. Note that it will not work on 'nosuid' mounted filesystems.
Should I add it as well explicitly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naw, I think what you've got now is fine. 👍
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Felixoid marked this conversation as resolved.
Show resolved
Hide resolved
Felixoid marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
https://github.com/ClickHouse/ClickHouse |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
View [license information](https://github.com/ClickHouse/ClickHouse/blob/master/LICENSE) for the software contained in this image. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[ClickHouse Inc.](%%GITHUB-REPO%%) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"hub": { | ||
"categories": [ | ||
"databases-and-storage" | ||
] | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.