Coder Social home page Coder Social logo

`docker ps` checking fails randomly about che HOT 7 CLOSED

eclipse avatar eclipse commented on August 29, 2024
`docker ps` checking fails randomly

from che.

Comments (7)

TylerJewell avatar TylerJewell commented on August 29, 2024

So is this a good fail? I am wondering if we ignored this error and allowed the Che image to boot, would it be functional?

Wondering if we should improve how we test for docker readiness.

from che.

freewind avatar freewind commented on August 29, 2024

@TylerJewell Sometimes it's good fails, but sometimes not. But can't distinguish it from the output. For the time I posted this issue, I felt it more like a bug

from che.

TylerJewell avatar TylerJewell commented on August 29, 2024

We might change this to do a full docker ps -a, which often will show active containers that are in a zombie state.

from che.

freewind avatar freewind commented on August 29, 2024

What about using docker info instead of docker ps?

from che.

 avatar commented on August 29, 2024

If this check fails docker info will fail as well. The problem is that maybe docker does not have enough time to start while che.sh runs. Can you try adding sleep 10 to the CMD command?

I just started a fresh node on Digital Ocean - cannot reproduce the issue:

https://www.youtube.com/watch?v=UVucYKI5NHs

from che.

freewind avatar freewind commented on August 29, 2024

@eivantsov Thanks for the video. I will add such a sleep in the future if I have the same problem, and then will report it here

from che.

freewind avatar freewind commented on August 29, 2024

This issue seems not appear any more with latest version.

-v /var/run/docker.sock:/var/run/docker.sock should be the key when starting che. Thanks for fixing it

from che.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.