How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Docker Task API

A task is a container running on a swarm. It is the atomic scheduling unitof swarm. Swarm mode must be enabled for these endpoints to work.

Docker Task API is one of 15 APIs that Docker publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Task. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a getting-started guide.

This API exposes 3 operations across 3 paths, and defines 18 schemas. It is described by OpenAPI 2.0, at version 1.54.

3 operations 3 paths 18 schemas 3 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 2.0
API Version
1.54
Resource Areas
1

Paths & Operations 3

Across 3 paths, the API surfaces 3 operations — 3 GET. Each is listed below with its method, path, parameters, and response codes.

Task 3

A task is a container running on a swarm. It is the atomic scheduling unit of swarm. Swarm mode must be enabled for these endpoints to work.

GET
/tasks
List tasks
TaskList 1 param → 200500503
GET
/tasks/{id}
Inspect a task
TaskInspect 1 param → 200404500503
GET
/tasks/{id}/logs
Get task logs
TaskLogs 8 params → 200404500503

Schemas 18

The contract defines 18 schemas that model the data the API accepts and returns. The most detailed are Task (14 properties), TaskSpec (10 properties), Mount (9 properties), TaskStatus (6 properties). Each schema is shown below with its type and property counts.

TaskState
string
HealthConfig
object
A test to perform to check that the container is healthy. Healthcheck commands should be side-effect free.
6 properties
ObjectVersion
object
The version number of the object such as node, service, etc. This is needed to avoid conflicting writes. The client must send the version number along with the…
1 property
PortStatus
object
represents the port status of a task's host ports whose service has published host ports
1 property
TaskSpec
object
User modifiable task configuration.
10 properties
Task
object
14 properties
GenericResources
array
User-defined resources can be either Integer resources (e.g, SSD=3) or String resources (e.g, GPU=UUID1).
ResourceObject
object
An object describing the resources which can be advertised by a node and requested by a task.
3 properties
Platform
object
Platform represents the platform (Arch/OS).
2 properties
MountType
string
The mount type. Available types: - bind a mount of a file or directory from the host into the container. - cluster a Swarm cluster volume. - image an OCI image…
PluginPrivilege
object
Describes a permission the user has to accept upon installing the plugin.
3 properties
NetworkAttachmentConfig
object
Specifies how a service should be attached to a particular network.
3 properties
ErrorResponse
object
Represents an error.
1 property 1 required
Mount
object
9 properties
TaskStatus
object
represents the status of a task.
6 properties
ContainerStatus
object
represents the status of a container.
3 properties
Limit
object
An object describing a limit on resources which can be requested by a task.
3 properties
EndpointPortConfig
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

docker-task-api-openapi.yml Raw ↑

Other APIs Docker publishes across the network.

Docker Config API
Docker Container API
Docker Distribution API
Docker Exec API
Docker Image API
Docker Network API
Docker Node API
Docker Plugin API
Docker Secret API
Docker Service API
Docker Session API
Docker Swarm API
Where this information came from

This is an independent, third-party profile of Docker Task API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.