I am new to Kubernetes and Docker, and trying to setup a good environment for working with GCE using the gcloud cli.
Since I am using Windows 10 Home Edition, I realized my only option to use Docker is installing Docker Toolbox, so any Docker commands can be run only from a VM (docker-machine, a boot2docker). It also means, every time I want to create a docker image, I have to copy my local project folder to a share folder which the docker-machine would see, in order to build its image.
The docker-machine is a light version of linux, so it's not very user-friendly and difficult to use gcloud cli from.
I managed to work it all out up to the point where I want push my local docker image to my google's private registry.
gcloud cli is installed on my actual machine, can't be installed on the light-weight linux VM, so when I try to push the image from my Windows Powershell using:
gcloud docker -- push gcr.io/..../..
I receive the following error:
ERROR: Docker CLI operation failed:
unknown flag: --email
See 'docker login --help'.
ERROR: (gcloud.docker) Docker login failed.
First, I'm not even sure if the image would be recognized, since it has been created on the docker-machine.
Second, I could not login to docker on my actual machine, since docker could not be installed, and any docker command should be made from inside the docker-machine.
So basically, now I'm stuck without being able to push my image. I feel like the whole process from the start has been very complicated, so it all made me wonder about my whole setup.
My question is, what would be the appropriate way to setup my environment for a smooth flow?
If you think the flow I described, given the fact I've been using Windows 10 Home, is the best I can achieve, I would appreciate your help with solving the pushing issue with the google cli.