From 85bdd8f541716986fcae21a5e96354e894607a94 Mon Sep 17 00:00:00 2001 From: okxlin Date: Sun, 20 Aug 2023 01:31:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=B0=9D=E8=AF=95=E4=BF=AE=E6=AD=A3s390x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- s390x/latest/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/s390x/latest/Dockerfile b/s390x/latest/Dockerfile index f267b50..0dd4b9c 100644 --- a/s390x/latest/Dockerfile +++ b/s390x/latest/Dockerfile @@ -16,11 +16,13 @@ RUN apt-get update && apt-get install -y \ ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -# 安装 Docker -RUN curl -fsSL https://get.docker.com | bash -s docker +# 设置 Docker 仓库 +RUN curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \ + echo "deb [arch=s390x signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian bullseye stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null -# 清理 -RUN apt-get clean && rm -rf /var/lib/apt/lists/* +# 安装 Docker CLI +RUN apt-get update && apt-get install -y docker-ce-cli && \ + apt-get clean && rm -rf /var/lib/apt/lists/* # 安装 Docker Compose RUN curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \