3

使用 docker 下载代码提示 key 报错问题请教

 2 years ago
source link: https://www.v2ex.com/t/868155
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

V2EX  ›  Ubuntu

使用 docker 下载代码提示 key 报错问题请教

  yhm2046 · 3 小时 49 分钟前 · 169 次点击

16.04 系统安装 docker 20.10.7 , 导入镜像 Image1:sudo docker load –input ~/Download/sd_build_docker.tar.gz 新建容器 xxx 挂载在共享目录 docker:sudo docker run -i -t -d -v /home/docker:/host –name sd_build sb_build_3 /bin/bash 启动 bash:sudo docker exec -it xxx /bin/bash 新建文件夹 file1 加入 key , 下载代码 Code1 ,编译成功

在共享目录 docker 下新建文件夹 file2 下载代码 Code2: git clone ssh://[email protected]:29418/buildsystem.git -b yyy 提示 key 报错: Cloning into 'buildsystem'... Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

我不用 docker 直接在 ubuntu 系统上下载代码是正常的没有报 key 的错误,请问这个是什么原因? 如何解决?


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK