码头文件
FROM ubuntu:20.04
ENV CH_VERSION 21.8.11.4
RUN \
apt-get update && \
apt-get install --yes --no-install-recommends \
apt-transport-https \
apt-utils \
dirmngr \
gnupg && \
apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 && \
echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" | tee /etc/apt/sources.list.d/clickhouse.list && \
apt-get update && \
apt-get install --allow-unauthenticated -y \
clickhouse-client=${CH_VERSION} \
clickhouse-server=${CH_VERSION} \
clickhouse-common-static=${CH_VERSION} \
libgcc-7-dev \
tzdata \
libreadline-dev \
curl && \
rm -rf \
/var/lib/apt/lists/* \
/var/cache/debconf \
/tmp/* && \
apt-get clean
VOLUME /var/lib/clickhouse
RUN chown -R clickhouse /etc/clickhouse-server
USER clickhouse
EXPOSE 9000 8123 9009
ENTRYPOINT exec /usr/bin/clickhouse-server --config=/etc/clickhouse-server/config.xml当尝试通过运行以下cmd来构建clickhouse映像时
docker build -t clickhouse-server:21.8.11.4 .之后,请求默认用户密码屏幕截图。
我尝试插入空白密码,也尝试插入随机密码,插入密码之后,它就卡住了。
发布于 2021-11-25 16:59:54
https://stackoverflow.com/questions/70107493
复制相似问题