Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shenwpo opened this issue Jul 29, 2022 · 0 comments
Open

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

shenwpo opened this issue Jul 29, 2022 · 0 comments
Labels

Comments

@shenwpo
Copy link

shenwpo commented Jul 29, 2022

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
@achimnol achimnol added the bug label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants