これはインターネット接続の問題だと思いますが、RSA公開鍵がない可能性があります。Dockerコンテナは公開Githubリポジトリをクローンできません
私はこのDockerfile持っている:私はコンテナを実行し、私はこれを取得
#!/usr/bin/env bash
cd # cd to home dir
mkdir suman-test
cd suman-test &&
rm -rf suman-test-projects &&
git clone [email protected]:sumanjs/suman-test-projects.git &&
cd suman-test-projects &&
./test-all.sh
:
をFROM node:4-onbuild
COPY test-install-post-publish.sh /usr/src/app/
EXPOSE 8888
を容器にCOPY'edますbashスクリプトがどのように見えます
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm info prestart [email protected]
npm info start [email protected]
> [email protected] start /usr/src/app
> ./test-install-post-publish2.sh
Cloning into 'suman-test-projects'...
The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
npm info [email protected] Failed to exec start script
npm ERR! Linux 4.4.27-boot2docker
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.6.2
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `./test-install-post-publish2.sh`
npm ERR! Exit status 128
npm ERR!
npm ERR! Failed at the [email protected] start script './test-install-post-publish2.sh'.
npm ERR! This is most likely a problem with the installation package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./test-install-post-publish2.sh
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs installation
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls installation
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
コンテナが「インターネットに接続できる」ように見えますが、RSA情報を持たないためbarfingしていますが必要だ。 BUTこれは公開されているレポです!なぜGithubはSSHの鍵やものを求めているのですか?
何が起こっている可能性がありますか?直し方?私はこれが公開Githubのレポであると確信しています、あなたが望むなら、あなたは自分で見ることができます。
おそらく私はSSHの代わりにHTTPSを使うべきでしょうか?しかし、まだ、上記の理由は?そして修正する方法。 –