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

Fix panic when op.Err is unset in Docker driver #280

Merged
merged 1 commit into from
Feb 25, 2022

Conversation

carolynvs
Copy link
Contributor

@carolynvs carolynvs commented Feb 18, 2022

The op.Err field was added after the docker driver was first written. I noticed that when the caller of the docker driver doesn't set op.Err it causes a panic when we attach to the container's logs.

This fixes our defaulting of where we write errors so that we are never writing to a nil writer accidentally.

It is based on #279 so I will rebase after that is merged.

The op.Err field was added after the docker driver was first written. I
noticed that when the caller of the docker driver doesn't set op.Err it
causes a panic when we attach to the container's logs.

This fixes our defaulting of where we write errors so that we are never
writing to a nil writer accidentally.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs merged commit df6ed99 into cnabio:main Feb 25, 2022
@carolynvs carolynvs deleted the fix-stdcopy-panic branch February 25, 2022 18:31
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.

2 participants