Skip to content

Failed to pull image #395

@hehw2024

Description

@hehw2024

code:

import asyncio
import boxlite

async def main():

async with boxlite.SimpleBox(image="ghcr.io/boxlite-ai/boxlite-skillbox:0.1.0") as box:
    result = await box.exec("python", "--version")
    print(result.stdout)

asyncio.run(main())

error:
File "/python3.10/site-packages/boxlite/simplebox.py", line 125, in aenter
await self._box.aenter()
RuntimeError: storage error: Failed to pull image 'debian:bookworm-slim' after trying 1 registry:

do request url:https://index.docker.io/v2/library/debian/manifests/bookworm-slim
response :
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Class":"","Name":"library/debian","Action":"pull"}]}]}

I've tried all the example‘s image name, and the error message is the same.When using Docker services to export rootfs for reading, a missing file system error is reported.

Could you please provide the methods to change the image mirror source?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions