{"id":14975918,"url":"https://github.com/freetwilight/docker","last_synced_at":"2025-10-27T16:31:46.354Z","repository":{"id":252407236,"uuid":"840342129","full_name":"FreeTwilight/docker","owner":"FreeTwilight","description":"The docker python client supports asynchronous parallel access to containers.","archived":false,"fork":false,"pushed_at":"2024-08-15T11:18:50.000Z","size":60,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T07:05:41.148Z","etag":null,"topics":["cd","ci","client","cloud","containers","docker","docker-api","docker-client","docker-compose","docker-sdk-for-python"],"latest_commit_sha":null,"homepage":"https://docs.docker.com/engine/api/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FreeTwilight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-09T13:42:44.000Z","updated_at":"2025-01-10T03:37:43.000Z","dependencies_parsed_at":"2024-09-18T18:03:46.073Z","dependency_job_id":null,"html_url":"https://github.com/FreeTwilight/docker","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":0.2222222222222222,"last_synced_commit":"123985a6109d927645e335892925cd6a7a04cacb"},"previous_names":["freetwilight/docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeTwilight%2Fdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeTwilight%2Fdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeTwilight%2Fdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FreeTwilight%2Fdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FreeTwilight","download_url":"https://codeload.github.com/FreeTwilight/docker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238526979,"owners_count":19487138,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cd","ci","client","cloud","containers","docker","docker-api","docker-client","docker-compose","docker-sdk-for-python"],"created_at":"2024-09-24T13:52:51.691Z","updated_at":"2025-10-27T16:31:46.019Z","avatar_url":"https://github.com/FreeTwilight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker SDK for Python\nThe docker python client supports asynchronous parallel access to containers.\n\nDevelop with Docker Engine SDKs\nDocker provides an API for interacting with the Docker daemon (called the Docker Engine API), as well as SDKs for Go and Python. The SDKs allow you to efficiently build and scale Docker apps and solutions. If Go or Python don't work for you, you can use the Docker Engine API directly.\n\n# Reference Docs\nThis site was built using [Dokcer Docs manuals](https://docs.docker.com/manuals/).\n\n# Installation\nThe latest stable version is available on PyPI. Install with pip:\n```\npip install docker-sdk\n```\n\n# Usage \n### 1. Example docker client\n```\nimport asyncio,time\nimport sys,os,json\n\nfrom  docker.client  import Client\n\nasync def main():\n    client = Client(\"172.16.80.42\",\"2376\")\n    try:\n        ret = await client.images.list(params = {\"all\":\"true\"})\n        print(json.dumps(ret,ensure_ascii = False,indent=4))\n        \n    finally:\n        await client.close()\n\n    \nasyncio.run(main())\n```\n\n### 2. Example docker run\n```\nimport asyncio,time\nimport sys,os,json\n\nfrom docker.containers import Containers\n\nasync def main():\n    containers = Containers(\"172.16.80.42\",\"2376\")\n    await containers.init_session()\n    try:\n\n        ret = await containers.run(params={ \"name\": \"hello9\"},body = {'Image': 'searxng/searxng:latest'})\n        print(json.dumps(ret,ensure_ascii = False,indent=4))\n        \n    finally:\n        await containers.close()\n\n    \nasyncio.run(main())\n```\n### 3. Example docker list\n```\nimport asyncio,time\nimport sys,os,json\n\nfrom  docker.containers  import Containers\n\nasync def main():\n    containers = Containers(\"172.16.80.42\",\"2376\")\n    await containers.init_session()\n    try:\n        ret = await containers.list(params = {\"all\":\"true\"})\n        print(json.dumps(ret,ensure_ascii = False,indent=4))\n        \n    finally:\n        await containers.close()\n\n    \nasyncio.run(main())\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreetwilight%2Fdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreetwilight%2Fdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreetwilight%2Fdocker/lists"}