async_docker_client

Classes

AsyncDockerClient(*args, **kwargs) Provides an asynchronous interface to dockerpy.


class remoteappmanager.docker.async_docker_client.AsyncDockerClient(*args, **kwargs)[source]

Bases: object

Provides an asynchronous interface to dockerpy. All Client interface is available as methods returning a future instead of the actual result. The resulting future can be yielded.

This class is thread safe. Note that all instances use the same executor.

Initialises the docker async client.

The client uses a single, module level executor to submit requests and obtain futures. The futures must be yielded according to the tornado asynchronous interface.

The exported methods are the same as from the docker-py synchronous client, with the exception of their async nature.

Note that the executor is a ThreadPoolExecutor with a single thread.