kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.56k stars 535 forks source link

Chapter 2: Remote Registry #32

Open pdub787 opened 4 years ago

pdub787 commented 4 years ago

Was able to work through the original issues with the chapter and the Kuard demo. I'm almost to the end and I'm having a problem pushing the kuard image.

patricks-mbp:k8s patrick$ docker login Authenticating with existing credentials... Login Succeeded patricks-mbp:k8s patrick$ docker tag kuard gcr.io/kuar-demo/kuard-amd64:blue patricks-mbp:k8s patrick$ docker push gcr.io/kuar-demo/kuard-amd64:blue The push refers to repository [gcr.io/kuar-demo/kuard-amd64] 394b19c55b51: Preparing f70fb0293b4c: Preparing 92ef4a709b7b: Preparing ab0ec28f3a15: Preparing 9d98c080a30a: Preparing 101937cc95b4: Waiting 7bff3ff75b7b: Waiting 5aea01ea0a0f: Waiting 05f4935ad90a: Waiting c96f2308ab16: Waiting 38c2f9ead82d: Waiting 0dabcc98eeef: Waiting 6885f9305c0a: Waiting unauthorized: Unauthorized access.

I'm definitely a noob and was hoping this book would be step-by-step. Any help would be greatly appreciated.

lachie83 commented 1 year ago

Hi @pdub787, from the output you are trying to push to the following repo that you don't have credentials to - gcr.io/kuar-demo/kuard-amd64:blue. Using the docker tag command you can tag that image again providing a repo location on DockerHub that you've authenticated to and then push to that location.