Skip to content

Unable to attach to a glot-image container #11

@lslm

Description

@lslm

Context

Hi! Thanks for this project!

I'm trying to test the API on my MacBook, but when I try to run the sample code the request hangs for a while an then returns:

{
    "error": "docker.container.attach",
    "message": "Failed to attach to container: Failed while sending request: Failed read to chunked response body: Failed to read chunk length: Resource temporarily unavailable (os error 35)"
}

The other API paths works fine this is my Docker version:

{
    "docker": {
        "version": "24.0.2",
        "apiVersion": "1.43",
        "gitCommit": "659604f",
        "goVersion": "go1.20.4",
        "os": "linux",
        "arch": "arm64",
        "kernelVersion": "5.15.49-linuxkit-pr",
        "buildTime": "2023-05-25T21:50:59.000000000+00:00",
        "platform": {
            "name": "Docker Desktop 4.21.1 (114176)"
        },
        "components": [
            {
                "name": "Engine",
                "version": "24.0.2"
            },
            {
                "name": "containerd",
                "version": "1.6.21"
            },
            {
                "name": "runc",
                "version": "1.1.7"
            },
            {
                "name": "docker-init",
                "version": "0.19.0"
            }
        ]
    }
}

One thing that might be relevant is that I set the DOCKER_UNIX_SOCKET_PATH environment variable with /var/run/docker.sock instead of /Users/lucassantos/Library/Containers/com.docker.docker/Data/docker.raw.sock. When the env variable is set with the last one, sometimes the API can't even create the code-runner container.

I don't know if the CPU architecture or OS are problems, but setup is a M1 MacBook Pro with macOS Sonoma Beta 3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions