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

Call exec_podman in new thread, handle streaming logs whilst exited #7

Merged
merged 2 commits into from
Sep 10, 2021

Conversation

manics
Copy link
Owner

@manics manics commented Sep 10, 2021

podman logs --follow doesn't always exit when the container exits, causing repo2docker to hang
#6

This is reproducible with repo2docker images but not a simple image like busybox or nginx.

This PR works around it by running podman logs --follow in a separate thread, and checking whether the container has exited in the main thread

`podman logs --follow` doesn't always exit when the container exits, causing repo2docker to hang
#6

This is reproducible with repo2docker images but not a simple image like busybox or nginx.

This PR works around it by running `podman logs --follow` in a separate thread, and checking whether the container has exited in the main thread
@manics manics merged commit 8485ff5 into main Sep 10, 2021
@manics manics deleted the podman-logs-thread branch September 10, 2021 19:41
@manics manics mentioned this pull request Sep 10, 2021
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.

1 participant