我尝试启动一个docker-container,但我有一个错误:
错误:未能生成服务'client‘:命令'/bin/sh keyserver apt-get update && apt-get install --yes --no-install-建议apt-transport-https dirmngr gnupg && mkdir -p /etc/apt/Sourcees.list.d && apt-key adv -c keyserver.ubuntu.com --recv E0C56BD4 && echo $repository >/etc/apt/Sourcees.list.d/clickhouse.list.list&& apt-get update && env cache apt-get install --allow-unauthenticated -yes--no-install- returned - clickhouse-common-static=$version locales tzdata && rm -rf /var/lib/apt/list/*/var/ DEBIAN_FRONTEND=noninteractive /debconf && apt-get clean‘返回非零代码:2
我的dockerfile:
FROM ubuntu:18.04
ARG repository="deb http://repo.yandex.ru/clickhouse/deb/stable/ main/"
ARG version=19.*
RUN apt-get update \
&& apt-get install --yes --no-install-recommends \
apt-transport-https \
dirmngr \
gnupg \
&& mkdir -p /etc/apt/sources.list.d \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 \
&& echo $repository > /etc/apt/sources.list.d/clickhouse.list \
&& apt-get update \
&& env DEBIAN_FRONTEND=noninteractive \
apt-get install --allow-unauthenticated --yes --no-install-recommends \
clickhouse-client=$version \
clickhouse-common-static=$version \
locales \
tzdata \
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf \
&& apt-get clean
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENTRYPOINT ["/usr/bin/clickhouse-client"]发布于 2020-03-15 03:14:26
我不知道为什么,但问题来了:
apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4.它起作用了:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv E0C56BD4https://stackoverflow.com/questions/60549912
复制相似问题