Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

see streaming output of image build? #242

Closed
dtenenba opened this issue Jan 4, 2015 · 2 comments
Closed

see streaming output of image build? #242

dtenenba opened this issue Jan 4, 2015 · 2 comments

Comments

@dtenenba
Copy link

dtenenba commented Jan 4, 2015

Is there a way to see the output of Image#build... as it is happening, the way I could if I ran docker build from the command line? Like, maybe there's a way to use an Excon streaming response with the docker-api to facilitate this? Some of my image builds can take a long time and I'd like to know that something is actually happening rather than have to wait a long time only to find that the code is hung or the daemon is not responding, or something. The daemon itself doesn't seem to log the information I'm looking for (which is essentially the same stdout/stderr I would see if I ran docker build from the command line). I'm actually running Docker::Image#build_from_dir right now and it has just been sitting there for a very long time. I expect this build to take some time but it would be good to know what is going on...is this possible?

@dtenenba
Copy link
Author

dtenenba commented Jan 4, 2015

Sorry, just saw this:
"If a block is passed, chunks of output produced by Docker will be passed to that block."

@dtenenba dtenenba closed this as completed Jan 4, 2015
@ghost
Copy link

ghost commented Oct 25, 2017

This is broken, even when using a block.
filed a new issue: #500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant