8000 Api call for docker top · Issue #959 · aio-libs/aiodocker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Api call for docker top #959
Open
Open
@idan-rahamim-lendbuzz

Description

@idan-rahamim-lendbuzz

I couldn't find a way with aiodocker to execute docker top.
I currently do something like that, but it is not a good practice to call a private func _query_json

`async def docker_top(ps_args: str | None = None) -> dict[str, Any]:
    res: dict[str, Any] = await async_docker._query_json( # noqa: SLF001
        f"containers/{cls.container_name}/top", params={"ps_args": ps_args}
    )
    return res`

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

      0