【发布时间】:2016-09-05 04:06:51
【问题描述】:
以下 sn-p 一个月前运行良好(我上次运行容器时)。今天不行。为什么?
RUN mkdir /root/.ssh && \
mv /root/deployment_key /root/.ssh/id_rsa && cat /root/.ssh/id_rsa && \
chmod 600 /root/.ssh && \
chmod 600 /root/.ssh/id_rsa && \
ssh-keyscan github.com,$(getent hosts github.com | awk '{ print $1 }') > ~/.ssh/known_hosts
当我cat ~/.ssh/known_hosts 时,公钥只有预期长度的一半左右。 /root/.ssh/id_rsa 中的私钥是正确的。
下一行(私人回购的git clone)失败并显示
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
The command '/bin/sh -c git clone ssh://FOO@github.com/FOO/PRIVAT_REPO.git' returned a non-zero code: 128
我在 OSX 上运行 docker 版本 1.12.1-rc1-beta23(内部版本:11375),但在 Windows 10 上也失败了。
【问题讨论】: