Machine: github-api-token이 μž‘λ™ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

에 λ§Œλ“  2016λ…„ 01μ›” 06일  Β·  10μ½”λ©˜νŠΈ  Β·  좜처: docker/machine

λ‚΄κ°€ 말할 μˆ˜μžˆλŠ” κ²ƒμ—μ„œ 버전 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
areb2d kinbug

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

@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...
…

λͺ¨λ“  10 λŒ“κΈ€

@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/ μ—μ„œ μ‚¬μš© κ°€λŠ₯ν•œ μ΅œμ‹  (및 μ•ˆμ •λœ) λ²„μ „μœΌλ‘œ μ—…λ°μ΄νŠΈν•˜λŠ” 데 ν•„μš”ν–ˆμŠ΅λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰