Metadata-Version: 2.1
Name: docker-sdk
Version: 1.0.2
Summary: The docker python client supports asynchronous parallel access to containers.
Home-page: https://github.com/FreeTwilight/docker.git
Author: FreeTwilight
Author-email: zunpengyang@gmail.com
License: Apache License 2.0
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: aiohttp==3.10.0
Requires-Dist: tqdm==4.66.2

# Docker
The docker python client supports asynchronous parallel access to containers.

Develop with Docker Engine SDKs
Docker 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.

# Reference Docs
This site was built using [Dokcer Docs manuals](https://docs.docker.com/manuals/).

# Example docker run
```
import asyncio,time
import aiohttp
import sys,os,json

sys.path.append(os.path.join(os.getcwd(), "docker"))
from containers import Containers

async def main():
    containers = Containers("172.16.80.42","2376")
    await containers.init_session()
    try:

        ret = await containers.run(params={ "name": "hello9"},body = {'Image': 'searxng/searxng:latest'})
        print(json.dumps(ret,ensure_ascii = False,indent=4))
        
    finally:
        await containers.close()

    
asyncio.run(main())
```
