aio-libs / aio-libs/aiodocker

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

Abierto
#727 0 comentarios 0 reacciones 0 asignados Ver en GitHub
bug
Lenguaje dominante
Python
Estrellas
537
Forks
118
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## 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
```

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.