Skip to content

Commit 96950a4

Browse files
committed
Fix #458
1 parent cd006bb commit 96950a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def build(self, path=None, tag=None, quiet=False, fileobj=None,
463463
timeout=timeout,
464464
)
465465

466-
if context is not None:
466+
if context is not None and not custom_context:
467467
context.close()
468468

469469
if stream:

0 commit comments

Comments
 (0)