diff --git a/docker/utils.py b/docker/utils.py index aa60bc26..12d03411 100644 --- a/docker/utils.py +++ b/docker/utils.py @@ -38,7 +38,7 @@ def mkbuildcontext(dockerfile): return f -def tar(self, path): +def tar(path): f = tempfile.TemporaryFile() t = tarfile.open(mode='w', fileobj=f) t.add(path, arcname='.')