Giter Site home page Giter Site logo

Comments (5)

ahmetb avatar ahmetb commented on July 20, 2024

@waitingkuo ah that's nasty. That sounds a bit like the known issue we got at https://godoc.org/github.com/ahmetalpbalkan/go-dexec#hdr-Known_issues

  • You may receive empty stdout/stderr from commands if the executed command does not end with a trailing new line or has a different flushing behavior.

Can you try appending an empty line echo after that? (echo $(pwd);echo)

from go-dexec.

waitingkuo avatar waitingkuo commented on July 20, 2024

@ahmetalpbalkan it's still the same. Sometimes it can output correctly, sometimes empty.

from go-dexec.

ahmetb avatar ahmetb commented on July 20, 2024

@waitingkuo yep that flakiness actually is my experience with running fast commands as well while I developed this. It appears like there is either a flushing bug in the go-dockerclient's hijack protocol implementation I am using or in the docker engine. (Former is more likely.)

When you run slower commands (or add sleeps it is actually working fine). What I can suggest is, try using https://godoc.org/github.com/fsouza/go-dockerclient directly (you can take a look at dexec source code and see how we call into that library) and repro it with the go-dockerclient only, and open an issue on its repository.

That would fix the downstream.

from go-dexec.

ahmetb avatar ahmetb commented on July 20, 2024

@fsouza any ideas? Have you heard of any missing output cases from go-dockerclient attach/hijack functionality?

from go-dexec.

fsouza avatar fsouza commented on July 20, 2024

@ahmetalpbalkan I haven't, but I can help debugging it. I'll try to reproduce it using only go-dockerclient.

from go-dexec.

Related Issues (7)

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.