Open 125540947 opened 5 months ago
检查下本地网络或者docker环境,我这里使用play with docker是可以正常拉取镜像的
我两台VPS及本地电脑都拉取失败
[root@iZ7xvj1stqc9xhxuidnxxbZ ~]# git clone git@github.com:srcrs/MagicBox.git Cloning into 'MagicBox'... Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. [root@iZ7xvj1stqc9xhxuidnxxbZ ~]# 腾讯云
抱歉,看错了,克隆仓库在没有密钥的情况下,需要使用http方式拉取
git clone https://github.com/srcrs/MagicBox.git
[server builder 4/4] RUN go build -ldflags "-s -w" -o ./bin/MagicBox .: 0.328 go: downloading github.com/tidwall/gjson v1.17.1 0.330 go: downloading github.com/DataHenHQ/useragent v0.1.0 编译出现这个
Cloning into 'MagicBox'... The authenticity of host 'github.com (20.205.243.166)' can't be established. ECDSA key fingerprint is SHA256:p2QAMXNIC1TJYWeIOttrVc98/R1BUFWu3/LiyKgUfQM. Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.