Docker build failed at cloning sources.
44uk opened this issue · comments
Yoshiyuki IEYAMA commented
I'm trying to build docker image, but it failed at cloning sources.
$ docker build -t nis-cli .
[+] Building 2.7s (7/10)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 913B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/ubuntu:20.04 0.0s
=> [1/7] FROM docker.io/library/ubuntu:20.04 0.0s
=> CACHED [2/7] RUN apt-get update && apt-get install -y tzdata && apt-get install -y openjdk-8-jdk-headless git libs 0.0s
=> CACHED [3/7] RUN mkdir -p ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts 0.0s
=> ERROR [4/7] RUN --mount=type=ssh mkdir -p /build && cd /build && git clone git@github.com:NemProject/nis-client.gi 2.5s
------
> [4/7] RUN --mount=type=ssh mkdir -p /build && cd /build && git clone git@github.com:NemProject/nis-client.git && cd nis-client && git submodule update --init --recursive:
#7 0.252 Cloning into 'nis-client'...
#7 1.875 Warning: Permanently added the RSA host key for IP address '13.114.40.48' to the list of known hosts.
#7 2.457 git@github.com: Permission denied (publickey).
#7 2.458 fatal: Could not read from remote repository.
#7 2.458
#7 2.458 Please make sure you have the correct access rights
#7 2.458 and the repository exists.
------
executor failed running [/bin/sh -c mkdir -p /build && cd /build && git clone git@github.com:NemProject/nis-client.git && cd nis-client && git submodule update --init --recursive]: exit code: 128
Jaguar0625 commented