This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Docker and Kubernetes -- how to see what errors are happening?  RSS feed

 
author
Posts: 23830
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, not sure if this is the best place for this, so may move this topic around later...

To start, I got Docker and Kubernetes working fine on my Windows 10 laptop. I am able to start and attach onto the image fine. Next step, I changed the YAML file so that it will mount a directory on my laptop (using the host path option). This doesn't work -- and leaves the image stuck on startup...

C:\> kubectl get pods
NAME                       READY     STATUS                  RESTARTS   AGE
umstore                    0/1         ContainerCreating   0                1h



So, I guess the questions are... Specifically related to my issues, what should I look at? And in general, related to all issues, how do I get better visibility on what is going on? Of course, I can't fix something, if I don't know why the image isn't starting.

Thanks for any hints,
Henry
 
Author
Posts: 16
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can try running kubectl describe pods   (or kubectl describe pod umstore). You'll see a list of events at the bottom, which should tell you why the container isn't starting.
 
Henry Wong
author
Posts: 23830
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Marko Luksa wrote:You can try running kubectl describe pods   (or kubectl describe pod umstore). You'll see a list of events at the bottom, which should tell you why the container isn't starting.



Thanks. Visibility is a great thing....

Looks like the error is ... "hostPath type check failed: C:\umstuff is not a directory". The directory is definitely there. Additionally, since I thought it may be a Linux / Windows difference, I also tried "C:/umstuff" and "C:\\umstuff". They all failed. Could this be a permissions thingy?

Thanks,
Henry
 
Saloon Keeper
Posts: 20649
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have one running in front of me right now, but the dashboard webapp has always supplied me with information about what's causing my problems.

The dashboard's URL should be displayed as part of the startup messages when you run kubectl from a command line.
 
Henry Wong
author
Posts: 23830
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Holloway wrote:I don't have one running in front of me right now, but the dashboard webapp has always supplied me with information about what's causing my problems.



Interesting. There is a dashboard...

Running "kubectl proxy" starts and gives access to the dashboard. However, going to the dashboard is just a JSON list of stuff. Is there something that I missed?

Henry
 
Tim Holloway
Saloon Keeper
Posts: 20649
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, you should see a full-fledged control panel, complete with status of each managed container and a sidebar.

Like this
 
Henry Wong
author
Posts: 23830
140
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, definitely not getting that. I guess I need to look into it some more...

Henry
 
No more fooling around. Read this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!