VOOZH about

URL: https://www.javacodegeeks.com/2019/07/discovering-containers-loaded-che-7.html

⇱ Discovering containers loaded by Che 7 - Java Code Geeks


Prerequisites

You need a Kubernetes or OpenShift cluster (eg., minikube or minishift), into which you have  installed Che.

Follow the steps in this document to deploy Che. Steps below can be done in parallel to collect a list of containers involved in deployment.

Procedure

  • Once you have started your cluster, you can watch events and see which images are pulled. Start this in a console window before deploying Che to your cluster.

oc project che oc get po oc get events -w | tee /tmp/minishift.log.txt

  • Watch for lines containing the following lines to see what containers are pulled.

Successfully pulled image "..." and Container image "..." already present on machine

  • For example, this should extract just a list of pulled containers, including any duplicate re-pulls:

cat /tmp/minishift.log.txt | \ egrep "Successfully pulled image|Container image" | \ sed -e 's#.*\(Successfully pulled image\|Container image\) "\(.\+\)\".*#\2#g'

  • You can also look at the available images in the minishift docker context:

eval $(minishift docker-env) docker images

  • You can also see container events at this URL:

https://192.168.YOUR.IP:8443/console/project/che/browse/events

Published on Java Code Geeks with permission by Nick Boldt , partner at our JCG program. See the original article here: Discovering containers loaded by Che 7

Opinions expressed by Java Code Geeks contributors are their own.

Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

👁 Photo of Nick Boldt
Nick Boldt
July 4th, 2019Last Updated: July 1st, 2019
0 57 1 minute read
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Oldest
Newest Most Voted
Back to top button
Close
wpDiscuz