aio-libs / aio-libs/aiodocker

Error processing tar file(exit status 1): unexpected EOF

Open
#727 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
537
Forks
118
PR merge metrics
No merged PRs in 30d

Description

## import_image api error

* Expected behaviour: a image object
* Actual behaviour:
[{'errorDetail': {'message': 'Error processing tar file(exit status 1): unexpected EOF'}, 'error': 'Error processing tar file(exit status 1): unexpected EOF'}]

## How to reproduce

## Your environment
ubuntu 20.04
python 3.8.10
aiodokcer 0.21.0

```
import asyncio

import aiodocker

async def test_load(file):
async with aiodocker.Docker() as client:
image = await client.images.import_image(file)
print(image)

file = "/home/wenpo/Documents/redis.tar"
asyncio.run(test_load(file))
```

output:
```
/usr/bin/python3.8 /home/wenpo/code/test.py
[{'errorDetail': {'message': 'Error processing tar file(exit status 1): unexpected EOF'}, 'error': 'Error processing tar file(exit status 1): unexpected EOF'}]

Process finished with exit code 0
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.