gcloud docker push reliability

前端 未结 3 1495
执笔经年
执笔经年 2021-01-19 04:39

I have been having a lot of problems pushing images with gcloud docker push over the past few weeks. I\'ve read through the many stack overflow discussions and

相关标签:
3条回答
  • 2021-01-19 05:02

    Switching to regular docker push doesn't help timeouts. This appears to be related to your ISP and uploading assets.

    I was receiving the same error. After moving the Docker build process to the cloud (which has a much larger pipeline), gcloud docker builds and deploys the image just fine.

    0 讨论(0)
  • 2021-01-19 05:06

    I never faced the problems you mentioned with gcloud docker, but regarding your last point,

    Is there another way to get images to the cloud repository (preferably from the command line)?

    it is indeed possible to push to the gcr.io repos without going through gcloud, e.g:

    docker login -e dummy@example.com -p $(gcloud auth print-access-token) -u _token https://gcr.io
    docker push [your-image]
    

    Credits to mattmoor, more info in original answer here: Access google container registry without the gcloud client

    0 讨论(0)
  • 2021-01-19 05:09

    I had the same or similar problem. After a few minutes of retry loop depicted with screenshoot above, the command will fail with net/http: TLS handshake timeout.

    The solution that fixed it for me was editing the docker daemon configuration with

    DOCKER_OPTS="--max-concurrent-uploads=1"

    I had a feeling this issue was connected with docker clogging up the network, as I noticed even browsing to gmail can get a timeout(!)

    0 讨论(0)
提交回复
热议问题