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 github issues and workarounds but I haven't come across a solution to the inconsistency yet.
Typically I will attempt to push a container image or two. The first push will almost always fail with the following retry-until-timeout output:
I can only get around it with gcloud auth login
. At most 5 minutes later I will attempt to push a second image, and will again see the retry-until-timeout issue. I will see this on every attempt until I gcloud auth login
again.
Often I will have to manually retry several more times immediately after authenticating before the image is actually pushed.
- Am I actually being logged out (I can still access pods and instances, etc with
kubectl
andgcloud
machines)? If so, why is being logged out inconsistent and what does building docker containers do that it would invalidate my local gcloud session? - If not, why can't I
gcloud docker push
until I authenticate again? After that, why is this still inconsistent (I suspect it may have little or nothing to do with the real issue). - Is there a way to make pushing images on OSX with docker-machine and gcloud docker push reliable? Is there another way to get images to the cloud repository (preferably from the command line)?
gcloud --version
alpha 2016.01.12
beta 2016.01.12
bq 2.0.18
bq-nix 2.0.18
core 2016.02.11
core-nix 2016.02.05
gcloud
gsutil 4.16
gsutil-nix 4.15
kubectl
kubectl-darwin-x86_64 1.1.7
docker --version
Docker version 1.10.1, build 9e83765
docker-machine --version
docker-machine version 0.6.0, build e27fb87
virtualbox version 5.0.14 r105127