IBM / container-service-getting-started-wt

Other
95 stars 212 forks source link

Kubernetes Lab 1 : -bash: docker: command not found ( using cloudshell ) #122

Closed shubhrojyotide closed 4 years ago

shubhrojyotide commented 4 years ago

From Kuberenetes LAB 1 : https://courses.cognitiveclass.ai/courses/course-v1:CognitiveClass+CO0201EN+v1/courseware/754094ea513a42f39ec84d99cae78249/f1cc315d40b74e1aa6ec1cd2a3c1f985/

Create a namespace in IBM Cloud Container Registry where you can store your images: ibmcloud cr namespace-add --------------------> I created k8-ns-shubhro

Build the example Docker image: docker build --tag us.icr.io//hello-world . ---------------> This is failing

shubhrojyoti_de@cloudshell:~$ docker build --tag us.icr.io/k8-ns-shubhro/hello-world -bash: docker: command not found

Please help on this.

MarquinheGit commented 4 years ago

Hi I used this: ibmcloud cr build --tag us.icr.io//hello-world:1 .

be aware the "dot" at the end

From Kuberenetes LAB 1 : https://courses.cognitiveclass.ai/courses/course-v1:CognitiveClass+CO0201EN+v1/courseware/754094ea513a42f39ec84d99cae78249/f1cc315d40b74e1aa6ec1cd2a3c1f985/

Create a namespace in IBM Cloud Container Registry where you can store your images: ibmcloud cr namespace-add --------------------> I created k8-ns-shubhro

Build the example Docker image: docker build --tag us.icr.io//hello-world . ---------------> This is failing

shubhrojyoti_de@cloudshell:~$ docker build --tag us.icr.io/k8-ns-shubhro/hello-world -bash: docker: command not found

Please help on this.

bhpratt commented 4 years ago

Make sure you have docker installed locally. That error is saying it can't find docker.

Or use @MarquinheGit's ibmcloud cr build suggestion. Which is the preferred method and the one used in this repo's instructions.