Exceptions

class aiodocker.exceptions.DockerError(status: int, message: str, *args: Any)[source]

Base exception for all aiodocker errors.

This is the root of the exception hierarchy. All exceptions raised by aiodocker are subclasses of this exception, making it easy to catch all aiodocker-related errors with a single except clause.

status

The HTTP status code from the Docker API response (if applicable).

message

The error message.