google compute engine - Unable to ssh into GCE docker container -


this first time using google cloud platform , feeling bit lost.

i pushed custom ubuntu image (created dockerfile) gce , created container cluster console.

what got is: container cluster , vm instances cluster.

i can ssh these instances , see them blank, mean not have built dockerfile on system. copied source code it. did docker images in whatever instance sshed not see image pushed.

i totally lost now. basic question how see contents of container or how ssh it.

i tried following tutorials no success. ex: tried command gcloud compute instances list , got big string (gke-cluster-1-53f024ac-node-s5zc) instance name. when tried command gcloud compute ssh gke-cluster-1-53f024ac-node-s5zc got error instance not found.

please help.

thanks

to log container, use following command:

kubectl exec -it pod bash 

replace pod name of pod in container running. works pods single container. pods multiple containers, use -c option specify container.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -