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 stderr from Docker container #615

Merged
merged 2 commits into from
Jul 14, 2024

Conversation

x4204
Copy link
Contributor

@x4204 x4204 commented Jul 14, 2024

Fixes #611

Stderr output from Docker container is now correctly captured by Dagu

Comment on lines -112 to -114
out, err := cli.ContainerLogs(
ctx, resp.ID, types.ContainerLogsOptions{ShowStdout: true},
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this above cli.ContainerWait so that log streaming starts immediately after container starts and not after the container exits

Copy link
Collaborator

@yohamta yohamta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨✨LGTM✨✨🚀, thank you very much for fixing all the docker executor issues!

@yohamta yohamta merged commit cad2555 into dagu-org:main Jul 14, 2024
3 checks passed
@x4204 x4204 deleted the i611-capture-docker-stderr branch July 14, 2024 15:05
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

Successfully merging this pull request may close these issues.

Docker executor does not propagate stderr output
2 participants