私が知る限り、バージョン0.5.5は--git-api-tokenをサポートしているはずですが、私には機能していないようです。 おそらく私は間違っていて、これらの変更が最後のリリースに反映されなかったのでしょうか、それとも何か間違ったことをしているのでしょうか?
% docker-machine --github-api-token=<redacted> create -d virtualbox shinybox
Running pre-create checks...
(shinybox) You are using version 4.3.14r95030 of VirtualBox. If you encouter issues, you might want to upgrade to version 5 at https://www.virtualbox.org
(shinybox) No default Boot2Docker ISO found locally, downloading the latest release...
Error creating machine: Error with pre-create check: Error getting a version tag from the Github API response.
You may be getting rate limited by Github.
% docker-machine --version
docker-machine version 0.5.5, build
こんにちは@kurtharriger問題を再現できません。 トークンを再確認できますか? また、brewが提供するものではなく、公式のバイナリを試すことはできますか?
アップグレードされ、検証されたトークンと同じ問題。
回避策として、手動で.isoファイルをダウンロードし、特定の場所に保存できます。 docker-machineがローカルで検出し、再度ダウンロードしないように、どこに保存すればよいですか?
% docker-machine --version
docker-machine version 0.5.5, build 02c4254
% docker-machine --github-api-token=$GITHUB_TOKEN create -d virtualbox shinybox
Running pre-create checks...
(shinybox) No default Boot2Docker ISO found locally, downloading the latest release...
Error creating machine: Error with pre-create check: Error getting a version tag from the Github API response.
You may be getting rate limited by Github.
% curl https://api.github.com/user\?access_token\=$GITHUB_TOKEN
{
"login": "kurtharriger",
...
}
トークンを使わなくても動作しますよね?
ルメール。 6janv。 午前17時36分à2016、クルトHarriger [email protected] A
écrit:
アップグレードされ、検証されたトークンと同じ問題。
回避策として、.isoファイルを手動でダウンロードして保存できますか
どこか特定。 docker-machineが実行できるように、どこに保存すればよいですか?
ローカルで見つけて、再度ダウンロードしないでください。%docker-machine --version
docker-machineバージョン0.5.5、ビルド02c4254%docker-machine --github-api-token = $ GITHUB_TOKEN create -d virtualbox shinybox
作成前チェックの実行...
(shinybox)デフォルトのBoot2Docker ISOがローカルに見つからず、最新リリースをダウンロードしています...
マシンの作成エラー:作成前チェックのエラー:GithubAPI応答からのバージョンタグの取得エラー。
Githubによってレート制限が発生している可能性があります。%curl https://api.github.com/user \ ?
{{
「ログイン」:「kurtharriger」、
..。
}—
このメールに直接返信するか、GitHubで表示してください
https://github.com/docker/machine/issues/2765#issuecomment-169381828 。
いいえ、稼働中のネットワークは常にレート制限されているようです。 おそらく、認証トークンを使用していない場所で実行されているスクリプトがあるため、常にgithubに認証トークンを提供する必要があります。
docker toolboxにはすべてがバンドルされているようです。ダウンロードしてインストールし、boot2docker.isoを必要な場所にコピーして実行しました。
次のレート制限リクエストと同じトークンを使用すると、同じ問題が発生します。
curl https://api.github.com/rate_limit\?access_token\=<redacted>
{
"resources": {
"core": {
"limit": 5000,
"remaining": 5000,
"reset": 1452811101
},
"search": {
"limit": 30,
"remaining": 30,
"reset": 1452807561
}
},
"rate": {
"limit": 5000,
"remaining": 5000,
"reset": 1452811101
}
}
私はバージョン0.5.6を使用しています。
私もこのエラーが発生しています。 昨日はうまくいきました。 レート制限されているとは思いません。 --github-api-token
を提供しましたが、役に立ちませんでした。
❯❯❯ docker-machine --github-api-token=redacted create --driver virtualbox default
Running pre-create checks...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
Error creating machine: Error with pre-create check: Error getting a version tag from the Github API response.
You may be getting rate limited by Github.
❯❯❯ docker-machine --version
docker-machine version 0.5.6, build 61388e9
@kurtharrigerに触発された回避策は
curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v1.9.1/boot2docker.iso
docker-machine create --driver virtualbox default
Creating CA: /home/sjackman/.docker/machine/certs/ca.pem
Creating client certificate: /home/sjackman/.docker/machine/certs/cert.pem
Running pre-create checks...
(default) Unable to get the latest Boot2Docker ISO release version: Error getting a version tag from the Github API response.
(default) You may be getting rate limited by Github.
Creating machine...
(default) Unable to get the latest Boot2Docker ISO release version: Error getting a version tag from the Github API response.
(default) You may be getting rate limited by Github.
(default) Copying /home/sjackman/.docker/machine/cache/boot2docker.iso to /home/sjackman/.docker/machine/machines/default/boot2docker.iso...
…
@kurtharrigerに触発された回避策は次のとおりです
curl -Lo ~/.docker/machine/cache/boot2docker.iso https://github.com/boot2docker/boot2docker/releases/download/v1.9.1/boot2docker.iso docker-machine create --driver virtualbox default
Creating CA: /home/sjackman/.docker/machine/certs/ca.pem Creating client certificate: /home/sjackman/.docker/machine/certs/cert.pem Running pre-create checks... (default) Unable to get the latest Boot2Docker ISO release version: Error getting a version tag from the Github API response. (default) You may be getting rate limited by Github. Creating machine... (default) Unable to get the latest Boot2Docker ISO release version: Error getting a version tag from the Github API response. (default) You may be getting rate limited by Github. (default) Copying /home/sjackman/.docker/machine/cache/boot2docker.iso to /home/sjackman/.docker/machine/machines/default/boot2docker.iso... …
ありがとうございます。 これは私にはうまくいきましたが、curlコマンドのboot2docker.isoのURLをhttps://github.com/boot2docker/boot2docker/releases/で入手可能な最新の(そして安定した)バージョンに更新する必要がありました
最も参考になるコメント
@kurtharrigerに触発された回避策は