2016-11-21 1 views
1

이미지를 Google Container Registry에 업로드하려고했지만 오류가 발생했으며 문제 해결 방법을 모르겠습니다.Mac에서 Google 컨테이너 레지스트리에 도커 이미지 푸시

$> gcloud docker -- push asia.gcr.io/dtapi-1314/web 
The push refers to a repository [asia.gcr.io/dtapi-1314/web] 
53ccd4e59f47: Retrying in 1 second 
32ca8635750d: Retrying in 1 second 
e5363ba7dd4d: Retrying in 1 second 
d575d439624a: Retrying in 1 second 
5c1cba20b78d: Retrying in 1 second 
7198e99c156d: Waiting 
6ca37046de16: Waiting 
b8f2f07b3eab: Waiting 
16681562a534: Waiting 
92ea1d98cb79: Waiting 
97ca462ad9ee: Waiting 
unable to decode token response: read tcp 10.0.2.10:54718->74.125.23.82:443: read: connection reset by peer

내 Mac의 사용 권한을 확인했습니다.

$> gsutil acl get gs://asia.artifacts.dtapi-1314.appspot.com

올바른 권한 목록을 반환했습니다.

나는 클라우드 콘솔에 대한 테스트를 테스트했지만 작동합니다.

단서가 있습니까? 도움을 주시면 감사하겠습니다. :)


다른 문제 해결

gcloud auth login
gcloud docker -- login -p $(gcloud auth print-access-token) -u _token https://asia.gcr.io 
gsutil acl get gs://asia.artifacts.{%PROJECT_ID}.appspot.com 

는 시작 명령을 dockerd하는 불안 - 레지스트리를 추가합니다.

--insecure-registry asia.gcr.io 

동일한 원인에게있을

gcloud docker -- pull google/python

오류이었다

Error response from daemon: Get https://registry-1.docker.io/v2/google/python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer

고정 표시기 서버 로그

DEBU[0499] Increasing token expiration to: 60 seconds 
ERRO[0500] Error trying v2 registry: Get https://registry-1.docker.io/....../python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer 
ERRO[0500] Attempting next endpoint for pull after error: Get https://registry-1.docker.io/....../python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer 
DEBU[0500] Skipping v1 endpoint https://index.docker.io because v2 registry was detected 
ERRO[0500] Handler for POST /v1.24/images/create returned error: Get https://registry-1.docker.io/....../python/manifests/latest: read tcp 10.0.2.15:37762->52.45.33.149:443: read: connection reset by peer
,

환경

  • 맥 OS :
  • 부두 노동자의 1.12.3 (MAC)에 10.11.6
  • 도커 도구 상자 (힘내 커밋 : 내장 6b644ec : 수요일 10월 26일 23시 26분 11초 2016)

답변

0

권한 문제와 같습니다. 시도해보십시오
gcloud auth login

나는 비슷한 문제가있어서 기억이납니다.

+0

답장을 보내 주셔서 감사합니다. :) ''gcloud auth login'을 시도한 후에도 결과는 여전히 동일합니다. 나는'gsutil acl get gs : //asia.artifacts. {% PROJECT_ID} .appspot.com'을 시도했다. 액세스 거부 대신 올바른 권한을 반환했습니다. 확인을 위해 다른 도구 나 로그가 있는지 궁금합니다. –

1

근본적인 원인은 어리 석었지만이 질문을 보는 사람이라면 누구나이 내용을 업데이트하고 싶습니다. 내 컴퓨터를 회사의 WIFI에 연결했을 때 알았습니다. 그러면 작동 할 것입니다 (여전히 리셋). 우리 회사의 케이블 네트워크가 Google Container Registry에 깨졌습니다. 케이블 네트워크는 Google이 사용한 다른 모든 서비스 (google/youtube/mobile services)에서 작동하지만 Google Container Registry로 분류됩니다.

관련 문제