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

Capture Output of Newly Created Container #32

Closed
rjperes opened this issue Aug 24, 2015 · 1 comment
Closed

Capture Output of Newly Created Container #32

rjperes opened this issue Aug 24, 2015 · 1 comment

Comments

@rjperes
Copy link
Contributor

rjperes commented Aug 24, 2015

Hi,
For starting a new container and obtaining its output, I follow this workflow:

  • CreateContainerAsync(id) (returns containerId)
  • StartContainerAsync(id)
  • GetContainerLogsAsync(containerId)

Am I doing it right or is there a better way? Specifically, how can I use the AttachStdout and AttachStderr parameters of the Config parameter of CreateContainerParameters?

Thanks!

@ahmetb
Copy link
Contributor

ahmetb commented Aug 24, 2015

@rjperes Hi, your workflow seems correct. That's what the Docker client normally does.

Regarding your other question about Attach parameters, you should ask your question at Docker's dev channels/forums.

@ahmetb ahmetb closed this as completed Aug 24, 2015
mdarocha referenced this issue in TrapTech/Docker.DotNet Jul 11, 2022
…session.

Fixes variant of issue #32.

Impact on performance still needs to be checked, so we may revert this later.
mdarocha referenced this issue in TrapTech/Docker.DotNet Jul 11, 2022
…session.

Fixes variant of issue #32.

Impact on performance still needs to be checked, so we may revert this later.
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

2 participants