Skip to content

Client.build attempts to clean up resources it does not own #458

@Julian

Description

@Julian

https://github.com/docker/docker-py/blob/master/docker/client.py#L479-L480 tries to close the context whenever it's present, but it possibly does not own (== did not create) that object, since it could have come from fileobj when custom_context is True.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions