λ΄κ° λ§ν μμλ κ²μμ λ²μ 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",
...
}
ν ν°μ μ¬μ©νμ§ μκ³ μλν©λκΉ?
λ₯΄ λ©λ₯΄. 1 μ 6 μΌ 2016 Γ 17:36, Kurt 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κ° μμ΅λλ€. μ΅μ 릴리μ€λ₯Ό λ€μ΄λ‘λν©λλ€ ...
λ¨Έμ μμ± μ€λ₯ : μμ± μ κ²μ¬ μ€λ₯ : Github API μλ΅μμ λ²μ νκ·Έλ₯Ό κ°μ Έ μ€λ λμ μ€λ₯κ° λ°μνμ΅λλ€.
Githubμ μν΄ μλκ° μ ν λ μ μμ΅λλ€.% 컬 https://api.github.com/user?access_token= $ GITHUB_TOKEN
{
"login": "kurtharriger",
...
}β
μ΄ μ΄λ©μΌμ μ§μ λ΅μ₯νκ±°λ GitHubμμ νμΈνμΈμ.
https://github.com/docker/machine/issues/2765#issuecomment -169381828.
μλμ, μ§μ₯ λ΄ λ€νΈμν¬λ νμ μλκ° μ νλμ΄μλ κ² κ°μ΅λλ€. μλ§λ μΈμ¦ ν ν°μ μ¬μ©νμ§ μλ μ΄λκ°μμ μ€νλλ μΌλΆ μ€ν¬λ¦½νΈμ΄λ―λ‘ νμ githubμ μΈμ¦ ν ν°μ μ 곡ν΄μΌν©λλ€.
λ컀 λꡬ μμ μ λͺ¨λ κ²μ΄ λ²λ€λ‘ ν¬ν¨λμ΄ μμΌλ―λ‘ λ€μ΄λ‘λνμ¬ μ€μΉνκ³ 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μμ μκ°μ μ»μ ν΄κ²° λ°©λ²μ λ€μκ³Ό κ°μ΅λλ€.