Entrypoint for the Docker API

Constructors

Properties

Config API

Container API

Distribution API

Exec API

Image API

Network API

Node API

Plugin API

Secret API

Service API

Service API @returns>} Possible response codes: - 101 (Switching Protocols): The server is switching protocols. - 200 (OK): The request was successful. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request.

Service API @returns>} Possible response codes: - 200 (OK): The service was updated successfully. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request.

Session API @returns>} Possible response codes: - 101 (Switching Protocols): The server is switching protocols as requested by the client. - 200 (OK): The request was successful, and the server responded with the requested data. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the manager was unlocked. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the node joined the swarm. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the node left the swarm. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the server responded with the requested data. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the swarm was initialized. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the swarm was updated. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server. - 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the unlock key was retrieved. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the credentials are valid. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the data usage information is returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the events are being streamed. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the server is accessible. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the server returned the Docker version and system information. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the system information is returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Task API @returns>} Possible response codes: - 200 (OK): The request was successful, and the list of tasks is returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Task API @returns>} Possible response codes: - 200 (OK): The request was successful, and the logs are returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server. - 507 (Insufficient Storage): The server is unable to store the representation needed to complete the request.

Task API @returns>} Possible response codes: - 200 (OK): The request was successful, and the task details are returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Volume API @returns>} Possible response codes: - 200 (OK): The volume was successfully inspected. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Volume API @returns>} Possible response codes: - 200 (OK): The volumes were successfully listed. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Volume API @returns>} Possible response codes: - 200 (OK): The volumes were successfully pruned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Volume API @returns>} Possible response codes: - 201 (Created): The volume was successfully created. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Volume API @returns>} Possible response codes: - 204 (No Content): The volume was successfully removed. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

Constructors

Properties

Config API

  • Create a config

    Parameters

    • Optionalbody: ConfigCreateRequest
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<IdResponse, any>>

    Possible response codes:

    • 201 (Created)
    • 400 (Bad Request)
    • 500 (Internal Server Error)
  • Delete a config

    Parameters

    • id: string

      ID of the config

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content)
    • 404 (Not Found)
    • 500 (Internal Server Error)
  • Retrieve detailed information about a specific config.

    Parameters

    • id: string

      The ID of the config to inspect.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<Config, any>>

    Possible response codes:

    • 200 (OK)
    • 404 (Not Found)
    • 500 (Internal Server Error)
  • List all configs.

    Parameters

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the configs list. Available filters:

      • id=<config id>
      • label=<key> or label=<key>=<value>
      • name=<config name>
      • names=<config name>
    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request option.

    Returns Promise<AxiosResponse<Config[], any>>

    Possible response codes:

    • 200 (OK)
    • 500 (Internal Server Error)
  • Update a Config

    Parameters

    • id: string

      The ID or name of the config.

    • version: number

      The version number of the config object being updated. This is required to avoid conflicting writes.

    • params: {
          body?: ConfigSpec;
          options?: RawAxiosRequestConfig;
      } = {}

      Optional parameters

      • Optionalbody?: ConfigSpec

        The spec of the config to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the ConfigInspect endpoint response values.

      • Optionaloptions?: RawAxiosRequestConfig

        Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.

Container API

  • Get a tar archive of a resource in the filesystem of a container.

    Parameters

    • id: string

      ID or name of the container

    • path: string

      Resource in the container’s filesystem to archive.

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 403 (Forbidden): The client does not have access rights to the content.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Retrieves information about files in a container. A response header X-Docker-Container-Path-Stat is returned, containing a base64-encoded JSON object with some filesystem header information about the path.

    Parameters

    • id: string

      ID or name of the container

    • path: string

      Resource in the container’s filesystem to archive.

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK)
    • 400 (Bad Request)
    • 403 (Forbidden)
    • 404 (Not Found)
    • 500 (Internal Server Error)
  • Attach to a container to read its output or send it input. You can attach to the same container multiple times and you can reattach to containers that have been detached. Either the stream or logs parameter must be true for this endpoint to do anything. See the documentation for the docker attach command for more details.

    This endpoint hijacks the HTTP connection to transport stdin, stdout, and stderr on the same socket. This is the response from the daemon for an attach request:

    HTTP/1.1 200 OK
    Content-Type: application/vnd.docker.raw-stream
    [STREAM]

    After the headers and two new lines, the TCP connection can now be used for raw, bidirectional communication between the client and server.

    To hint potential proxies about connection hijacking, the Docker client can also optionally send connection upgrade headers. For example, the client sends this request to upgrade the connection:

    POST /containers/16253994b7c4/attach?stream=1&stdout=1 HTTP/1.1
    Upgrade: tcp
    Connection: Upgrade

    The Docker daemon will respond with a 101 UPGRADED response, and will similarly follow with the raw stream:

    HTTP/1.1 101 UPGRADED
    Content-Type: application/vnd.docker.raw-stream
    Connection: Upgrade
    Upgrade: tcp
    [STREAM]

    When the TTY setting is disabled in POST /containers/create, the stream over the hijacked connection is multiplexed to separate out stdout and stderr. The stream consists of a series of frames, each containing a header and a payload. The header contains the information which the stream writes (stdout or stderr). It also contains the size of the associated frame encoded in the last four bytes (uint32). It is encoded on the first eight bytes like this:

    header := [8]byte{STREAM_TYPE, 0, 0, 0, SIZE1, SIZE2, SIZE3, SIZE4}
    

    STREAM_TYPE can be:

    • 0: stdin (is written on stdout)
    • 1: stdout
    • 2: stderr SIZE1, SIZE2, SIZE3, SIZE4 are the four bytes of the uint32 size encoded as big endian. Following the header is the payload, which is the specified number of bytes of STREAM_TYPE. The simplest way to implement this protocol is the following:
    1. Read 8 bytes.
    2. Choose stdout or stderr depending on the first byte.
    3. Extract the frame size from the last four bytes.
    4. Read the extracted size and output it on the correct output.
    5. Goto 1.

    When the TTY setting is enabled in POST /containers/create, the stream is not multiplexed. The data exchanged over the hijacked connection is simply the raw data from the process PTY and client's stdin.

    Parameters

    • id: string

      ID or name of the container

    • Optionalparams: {
          detachKeys?: string;
          logs?: boolean;
          options?: RawAxiosRequestConfig;
          stderr?: boolean;
          stdin?: boolean;
          stdout?: boolean;
          stream?: boolean;
      }

      Optional parameters

      • OptionaldetachKeys?: string

        Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, ,, or _.

      • Optionallogs?: boolean

        Replay previous logs from the container. This is useful for attaching to a container that has started and you want to output everything since the container started. If stream is also enabled, once all the previous output has been returned, it will seamlessly transition into streaming current output.

      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request options.

      • Optionalstderr?: boolean

        Attach to stderr

      • Optionalstdin?: boolean

        Attach to stdin

      • Optionalstdout?: boolean

        Attach to stdout

      • Optionalstream?: boolean

        Stream attached streams from the time the request was made onwards.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 101 (Switching Protocols): The server is switching protocols as requested by the client.
    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 403 (Forbidden): The client does not have access rights to the content.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Attach to a container via a websocket.

    Parameters

    • id: string

      ID or name of the container

    • Optionalparams: {
          detachKeys?: string;
          logs?: boolean;
          options?: RawAxiosRequestConfig;
          stream?: boolean;
      }

      Optional parameters

      • OptionaldetachKeys?: string

        Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, ,, or _.

      • Optionallogs?: boolean

        Return logs

      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request options.

      • Optionalstream?: boolean

        Return stream

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 101 (Switching Protocols)
    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 403 (Forbidden): The client does not have access rights to the content.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
  • Returns which files in a container's filesystem have been added, deleted, or modified. The Kind of modification can be one of:

    • 0: Modified
    • 1: Added
    • 2: Deleted

    Parameters

    • id: string

      ID or name of the container

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<ContainerChangeResponseItem[], any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 304 (Not Modified): There were no changes detected in the container's filesystem.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Create a container.

    Parameters

    • body: ContainerCreateRequest

      The container configuration

    • Optionalparams: {
          name?: string;
          options?: RawAxiosRequestConfig;
          platform?: string;
      }

      Optional parameters

      • Optionalname?: string

        Assign the specified name to the container. Must match the regex /?[a-zA-Z0-9][a-zA-Z0-9_.-]+.

      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request options.

      • Optionalplatform?: string

        Platform in the format os[/arch[/variant]] used for image lookup. When specified, the daemon checks if the requested image is present in the local image cache with the given OS and Architecture, and otherwise returns a 404 status. If the option is not set, the host's native OS and Architecture are used to look up the image in the image cache. However, if no platform is passed and the given image does exist in the local image cache, but its OS or architecture does not match, the container is created with the available image, and a warning is added to the Warnings field in the response, for example; WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested.

    Returns Promise<AxiosResponse<ContainerCreateResponse, any>>

    Possible response codes:

    • 201 (Created): The container was successfully created.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Remove a container.

    Parameters

    • id: string

      ID or name of the container

    • params: {
          force?: boolean;
          link?: boolean;
          options?: RawAxiosRequestConfig;
          v?: boolean;
      } = {}

      Optional parameters

      • Optionalforce?: boolean

        If the container is running, kill it before removing it.

      • Optionallink?: boolean

        Remove the specified link associated with the container.

      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request option.

      • Optionalv?: boolean

        Remove anonymous volumes associated with the container.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The container was successfully removed.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Export the contents of a container as a tarball.

    Parameters

    • id: string

      The ID or name of the container

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Retrieve detailed information about a container.

    Parameters

    • id: string

      The ID or name of the container

    • Optionalsize: boolean

      If true, includes the size of the container as fields SizeRw and SizeRootFs

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<ContainerInspectResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Sends a POSIX signal to a container, defaulting to killing the container.

    Parameters

    • id: string

      The ID or name of the container

    • Optionalsignal: string

      The signal to send to the container as an integer or string (e.g. SIGINT).

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The request was successful, and the server responded with no content.
    • 304 (Not Modified): The container was already in the desired state.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Returns a list of containers. For details on the format, see the inspect endpoint. Note that it uses a different, smaller representation of a container than inspecting a single container. For example, the list of linked containers is not propagated.

    Parameters

    • Optionalall: boolean

      Return all containers. By default, only running containers are shown.

    • Optionallimit: number

      Return this number of most recently created containers, including non-running ones.

    • Optionalsize: boolean

      Return the size of container as fields SizeRw and SizeRootFs.

    • Optionalfilters: string

      Filters to process on the container list, encoded as JSON (a map[string][]string). For example, {"status": ["paused"]} will only return paused containers. Available filters:

      • ancestor=(<image-name>[:<tag>], <image id>, or <image@digest>)
      • before=(<container id> or <container name>)
      • expose=(<port>[/<proto>]|<startport-endport>/[<proto>])
      • exited=<int> containers with exit code of <int>
      • health=(starting|healthy|unhealthy|none)
      • id=<ID> a container's ID
      • isolation=(default|process|hyperv) (Windows daemon only)
      • is-task=(true|false)
      • label=key or label="key=value" of a container label
      • name=<name> a container's name
      • network=(<network id> or <network name>)
      • publish=(<port>[/<proto>]|<startport-endport>/[<proto>])
      • since=(<container id> or <container name>)
      • status=(created|restarting|running|removing|paused|exited|dead)
      • volume=(<volume name> or <mount point destination>)
    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request option.

    Returns Promise<AxiosResponse<ContainerSummary[], any>>

    The request arguments to be sent to the API.

  • Retrieve stdout and stderr logs from a container. Note: This endpoint works only for containers with the json-file or journald logging driver.

    Parameters

    • id: string

      The ID or name of the container

    • Optionalparams: {
          follow?: boolean;
          options?: RawAxiosRequestConfig;
          since?: number;
          stderr?: boolean;
          stdout?: boolean;
          tail?: string;
          timestamps?: boolean;
          until?: number;
      }

      Optional parameters

      • Optionalfollow?: boolean

        Keep the connection open after returning logs.

      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request options.

      • Optionalsince?: number

        Only return logs since this time, as a UNIX timestamp.

      • Optionalstderr?: boolean

        Return logs from stderr. Must choose this or stdout.

      • Optionalstdout?: boolean

        Return logs from stdout. Must choose this or stderr.

      • Optionaltail?: string

        Only return this number of log lines from the end of the logs. Specify as an integer or all to output all log lines.

      • Optionaltimestamps?: boolean

        Add timestamps to every log line.

      • Optionaluntil?: number

        Only return logs before this time, as a UNIX timestamp.

    Returns Promise<AxiosResponse<File, any>>

    Possible response codes:

    • 101 (Switching Protocols): The server is switching protocols.
    • 200 (OK): The request was successful.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Use the freezer cgroup to suspend all processes in a container. Traditionally, when suspending a process the SIGSTOP signal is used, which is observable by the process being suspended. With the freezer cgroup, the process is unaware and unable to capture that it is being suspended and subsequently resumed.

    Parameters

    • id: string

      The ID or name of the container

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The request was successful, and the server has fulfilled the request but does not need to return an entity-body.
    • 304 (Not Modified): The container is already paused.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Delete stopped containers based on the provided filters.

    Parameters

    • Optionalfilters: string

      Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters:

      • until=<timestamp>: Prune containers created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.
      • label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>): Prune containers with (or without, in case label!=... is used) the specified labels.
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<ContainerPruneResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Rename an existing container.

    Parameters

    • id: string

      The ID or name of the container to rename

    • name: string

      The new name for the container

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The container was successfully renamed.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The new name is already in use.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Resize the TTY (teletypewriter) for a container.

    Parameters

    • id: string

      The ID or name of the container

    • Optionalh: number

      The height of the TTY session in characters

    • Optionalw: number

      The width of the TTY session in characters

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Restart a container.

    Parameters

    • id: string

      The ID or name of the container

    • Optionalt: number

      Number of seconds to wait before killing the container

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The container was successfully restarted.
    • 304 (Not Modified): The container was already stopped, and no action was taken.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Start a container.

    Parameters

    • id: string

      The ID or name of the container

    • OptionaldetachKeys: string

      Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl-<value> where <value> is one of: a-z, @, ^, [, , or _.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The container was successfully started.
    • 304 (Not Modified): The container was already started, and no action was taken.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The container is in a state which conflicts with the requested action.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • This endpoint returns a live stream of a container’s resource usage statistics. The precpu_stats field contains the CPU statistics from the previous read, which is used to calculate the CPU usage percentage. It is not an exact copy of the cpu_stats field. If either precpu_stats.online_cpus or cpu_stats.online_cpus is nil, then for compatibility with older daemons, the length of the corresponding cpu_usage.percpu_usage array should be used. On a cgroup v2 host, the following fields are not set:

    • blkio_stats: all fields other than io_service_bytes_recursive
    • cpu_stats: cpu_usage.percpu_usage
    • memory_stats: max_usage and failcnt Also, memory_stats.stats fields are incompatible with cgroup v1.

    To calculate the values shown by the stats command of the Docker CLI tool, the following formulas can be used:

    • used_memory = memory_stats.usage - memory_stats.stats.cache
    • available_memory = memory_stats.limit
    • Memory usage % = (used_memory / available_memory) * 100.0
    • cpu_delta = cpu_stats.cpu_usage.total_usage - precpu_stats.cpu_usage.total_usage
    • system_cpu_delta = cpu_stats.system_cpu_usage - precpu_stats.system_cpu_usage
    • number_cpus = length(cpu_stats.cpu_usage.percpu_usage) or cpu_stats.online_cpus
    • CPU usage % = (cpu_delta / system_cpu_delta) * number_cpus * 100.0

    Parameters

    • id: string

      ID or name of the container

    • Optionalstream: boolean

      Stream the output. If false, the stats will be output once and then it will disconnect.

    • OptionaloneShot: boolean

      Only get a single stat instead of waiting for 2 cycles. Must be used with stream=false.

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<object, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
  • Stops a running container. The container will be stopped gracefully, waiting for the specified number of seconds before forcefully killing it.

    Parameters

    • id: string

      ID or name of the container

    • Optionalt: number

      Number of seconds to wait before killing the container

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The container was successfully stopped.
    • 304 (Not Modified): The container was already stopped, and no action was taken.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The container is in a state which conflicts with the requested action.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • This method lists the processes running inside a container. On Unix systems, this is done by running the ps command. Note: This endpoint is not supported on Windows.

    Parameters

    • id: string

      ID or name of the container

    • OptionalpsArgs: string

      The arguments to pass to the ps command. For example, aux

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<ContainerTopResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
  • Resume a container that has been paused.

    Parameters

    • id: string

      ID or name of the container

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 204 (No Content): The container was successfully unpaused.
    • 304 (Not Modified): The container was already unpaused, and no action was taken.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
  • Modify the configuration settings of an existing container without needing to recreate it.

    Parameters

    • id: string

      The ID or name of the container

    • update: ContainerUpdateRequest

      The update request object containing the new configuration settings

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options

    Returns Promise<AxiosResponse<ContainerUpdateResponse, any>>

    Possible response codes:

    • 200 (OK): The container was successfully updated.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The container is in a state which conflicts with the requested action.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.

    Throws an error if the required parameters are not provided

  • Wait until a container stops and then return the exit code.

    Parameters

    • id: string

      The ID or name of the container

    • Optionalcondition: ContainerWaitConditionEnum

      The condition to wait for before returning. Defaults to not-running if omitted or empty.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<ContainerWaitResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 204 (No Content): The container was successfully unpaused.
    • 304 (Not Modified): The container was already unpaused, and no action was taken.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The container is in a state which conflicts with the requested action.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.

    Throws an error if the required parameters are not provided.

  • Upload a tar archive to be extracted to a specified path in the filesystem of a container. The path parameter must be a directory. If it exists as a file, a 400 error will be returned with the message "not a directory".

    Parameters

    • id: string

      The ID or name of the container

    • path: string

      The path to a directory in the container where the archive’s contents will be extracted

    • inputStream: File

      The input stream must be a tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, or xz

    • OptionalnoOverwriteDirNonDir: string

      If 1, true, or True, it will be an error if unpacking the given content would cause an existing directory to be replaced with a non-directory and vice versa

    • OptionalcopyUIDGID: string

      If 1, true, it will copy UID/GID maps to the destination file or directory

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The archive was successfully extracted.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax or the path is not a directory.
    • 403 (Forbidden): The client does not have access rights to the content.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
    • Throws an error if the required parameters are not provided

Distribution API

  • Retrieves the image digest and platform information by contacting the registry.

    Parameters

    • name: string

      The name or ID of the image.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<DistributionInspect, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 401 (Unauthorized): The client must authenticate itself to get the requested response.
    • 403 (Forbidden): The client does not have access rights to the content.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
    • Throws an error if the required parameters are not provided.

Exec API

  • Run a command inside a running container.

    Parameters

    • id: string

      The ID or name of the container.

    • execConfig: ExecConfig

      The configuration for the exec instance.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<IdResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • Throws an error if the required parameters are not provided.
  • Returns detailed information about an exec instance.

    Parameters

    • id: string

      The ID of the exec instance.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<ExecInspectResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • Throws an error if the required parameters are not provided.
  • Resize the TTY session used by an exec instance. This endpoint only works if tty was specified as part of creating and starting the exec instance.

    Parameters

    • id: string

      The ID of the exec instance.

    • Optionalh: number

      The height of the TTY session in characters.

    • Optionalw: number

      The width of the TTY session in characters.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • Throws an error if the required parameters are not provided.
  • Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.

    Parameters

    • id: string

      The ID of the exec instance.

    • OptionalexecStartConfig: ExecStartConfig

      Configuration for starting the exec instance.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 404 (Not Found): The server could not find the requested resource.
    • 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
    • Throws an error if the required parameters are not provided.

Image API

  • Deletes the builder cache.

    Parameters

    • OptionalkeepStorage: number

      Amount of disk space in bytes to keep for cache.

    • Optionalall: boolean

      Remove all types of build cache.

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the list of build cache objects. Available filters:

      • until=<duration>: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h')
      • id=<id>
      • parent=<id>
      • type=<string>
      • description=<string>
      • inuse
      • shared
      • private
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<BuildPruneResponse, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • Throws an error if the required parameters are not provided.
  • Builds a Docker image from a tar archive containing a Dockerfile. The Dockerfile specifies how the image is built from the tar archive. It is typically in the archive's root, but can be at a different path or have a different name by specifying the dockerfile parameter. See the Dockerfile reference for more information. The Docker daemon performs a preliminary validation of the Dockerfile before starting the build, and returns an error if the syntax is incorrect. After that, each instruction is run one-by-one until the ID of the new image is output. The build is canceled if the client drops the connection by quitting or being killed.

    Parameters

    • params: {
          buildargs?: string;
          cachefrom?: string;
          contentType?: ApplicationXTar;
          cpuperiod?: number;
          cpuquota?: number;
          cpusetcpus?: string;
          cpushares?: number;
          dockerfile?: string;
          extrahosts?: string;
          forcerm?: boolean;
          inputStream?: File;
          labels?: string;
          memory?: number;
          memswap?: number;
          networkmode?: string;
          nocache?: boolean;
          options?: RawAxiosRequestConfig;
          outputs?: string;
          platform?: string;
          pull?: string;
          q?: boolean;
          remote?: string;
          rm?: boolean;
          shmsize?: number;
          squash?: boolean;
          t?: string;
          target?: string;
          version?: ImageBuildVersionEnum;
          xRegistryConfig?: string;
      }

      The parameters for building the image.

      • Optionalbuildargs?: string

        JSON map of string pairs for build-time variables. Users pass these values at build-time. Docker uses the buildargs as the environment context for commands run via the Dockerfile RUN instruction, or for variable expansion in other Dockerfile instructions. This is not meant for passing secret values. For example, the build arg FOO=bar would become {"FOO":"bar"} in JSON. This would result in the query parameter buildargs={"FOO":"bar"}. Note that {"FOO":"bar"} should be URI component encoded. Read more about the buildargs instruction.

      • Optionalcachefrom?: string

        JSON array of images used for build cache resolution.

      • OptionalcontentType?: ApplicationXTar

        The content type of the build.

      • Optionalcpuperiod?: number

        The length of a CPU period in microseconds.

      • Optionalcpuquota?: number

        Microseconds of CPU time that the container can get in a CPU period.

      • Optionalcpusetcpus?: string

        CPUs in which to allow execution (e.g., 0-3, 0,1).

      • Optionalcpushares?: number

        CPU shares (relative weight).

      • Optionaldockerfile?: string

        Path within the build context to the Dockerfile. This is ignored if remote is specified and points to an external Dockerfile.

      • Optionalextrahosts?: string

        Extra hosts to add to /etc/hosts.

      • Optionalforcerm?: boolean

        Always remove intermediate containers, even upon failure.

      • OptionalinputStream?: File

        A tar archive compressed with one of the following algorithms: identity (no compression), gzip, bzip2, xz.

      • Optionallabels?: string

        Arbitrary key/value labels to set on the image, as a JSON map of string pairs.

      • Optionalmemory?: number

        Set memory limit for build.

      • Optionalmemswap?: number

        Total memory (memory + swap). Set as -1 to disable swap.

      • Optionalnetworkmode?: string

        Sets the networking mode for the run commands during build. Supported standard values are: bridge, host, none, and container:<name|id>. Any other value is taken as a custom network's name or ID to which this container should connect.

      • Optionalnocache?: boolean

        Do not use the cache when building the image.

      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request option.

      • Optionaloutputs?: string

        BuildKit output configuration.

      • Optionalplatform?: string

        Platform in the format os[/arch[/variant]].

      • Optionalpull?: string

        Attempt to pull the image even if an older image exists locally.

      • Optionalq?: boolean

        Suppress verbose build output.

      • Optionalremote?: string

        A Git repository URI or HTTP/HTTPS context URI. If the URI points to a single text file, the file’s contents are placed into a file called Dockerfile and the image is built from that file. If the URI points to a tarball, the file is downloaded by the daemon and the contents therein used as the context for the build. If the URI points to a tarball and the dockerfile parameter is also specified, there must be a file with the corresponding path inside the tarball.

      • Optionalrm?: boolean

        Remove intermediate containers after a successful build.

      • Optionalshmsize?: number

        Size of /dev/shm in bytes. The size must be greater than 0. If omitted, the system uses 64MB.

      • Optionalsquash?: boolean

        Squash the resulting image's layers into a single layer. (Experimental release only.)

      • Optionalt?: string

        A name and optional tag to apply to the image in the name:tag format. If you omit the tag, the default latest value is assumed. You can provide several t parameters.

      • Optionaltarget?: string

        Target build stage.

      • Optionalversion?: ImageBuildVersionEnum

        Version of the builder backend to use. - 1 is the first generation classic (deprecated) builder in the Docker daemon (default) - 2 is BuildKit

      • OptionalxRegistryConfig?: string

        This is a base64-encoded JSON object with auth configurations for multiple registries that a build may refer to. The key is a registry URL, and the value is an auth configuration object, as described in the authentication section. For example: { "docker.example.com": { "username": "janedoe", "password": "hunter2" }, "https://index.docker.io/v1/": { "username": "mobydock", "password": "conta1n3rize14" } } Only the registry domain name (and port if not the default 443) are required. However, for legacy reasons, the Docker Hub registry must be specified with both a https:// prefix and a /v1/ suffix even though Docker will prefer to use the v2 registry API.

    Returns Promise<AxiosResponse<void, any>>

    Possible response codes:

    • 200 (OK): The request was successful, and the server responded with the requested data.
    • 400 (Bad Request): The server could not understand the request due to invalid syntax.
    • 404 (Not Found): The server could not find the requested resource.
    • 500 (Internal Server Error): The server encountered an internal error and could not complete the request.
    • 503 (Service Unavailable): The server is not ready to handle the request.
    • 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.
  • Create a new image from a container.

    Parameters

    • Optionalcontainer: string

      The ID or name of the container to commit

    • Optionalrepo: string

      Repository name for the created image

    • Optionaltag: string

      Tag name for the created image

    • Optionalcomment: string

      Commit message

    • Optionalauthor: string

      Author of the image (e.g., John Hannibal Smith <hannibal@a-team.com>)

    • Optionalpause: boolean

      Whether to pause the container before committing

    • Optionalchanges: string

      Dockerfile instructions to apply while committing

    • OptionalcontainerConfig: ContainerConfig

      The container configuration

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<IdResponse, any>>

    A promise that resolves to the response of the image commit operation.

    Response codes:

    • 201: Image created successfully
    • 400: Bad parameter
    • 404: No such container
    • 500: Server error
  • Create an image by either pulling it from a registry or importing it.

    Parameters

    • params: {
          changes?: string[];
          fromImage?: string;
          fromSrc?: string;
          inputImage?: string;
          message?: string;
          platform?: string;
          repo?: string;
          tag?: string;
          xRegistryAuth?: string;
      }

      Parameters for creating an image

      • Optionalchanges?: string[]

        Apply Dockerfile instructions to the image that is created, for example: changes=ENV DEBUG=true. Note that ENV DEBUG=true should be URI component encoded. Supported Dockerfile instructions: CMD|ENTRYPOINT|ENV|EXPOSE|ONBUILD|USER|VOLUME|WORKDIR

      • OptionalfromImage?: string

        Name of the image to pull. The name may include a tag or digest. This parameter may only be used when pulling an image. The pull is cancelled if the HTTP connection is closed.

      • OptionalfromSrc?: string

        Source to import. The value may be a URL from which the image can be retrieved or - to read the image from the request body. This parameter may only be used when importing an image.

      • OptionalinputImage?: string

        Image content if the value - has been specified in fromSrc query parameter

      • Optionalmessage?: string

        Set commit message for imported image.

      • Optionalplatform?: string

        Platform in the format os[/arch[/variant]]

      • Optionalrepo?: string

        Repository name given to an image when it is imported. The repo may include a tag. This parameter may only be used when importing an image.

      • Optionaltag?: string

        Tag or digest. If empty when pulling an image, this causes all tags for the given image to be pulled.

      • OptionalxRegistryAuth?: string

        A base64url-encoded auth configuration. Refer to the authentication section for details.

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the image creation operation.

    Response codes:

    • 200: Image created successfully
    • 400: Bad parameter
    • 404: No such image
    • 500: Server error
  • Remove an image, along with any untagged parent images that were referenced by that image. Images cannot be removed if they have descendant images, are being used by a running container, or are being used by a build.

    Parameters

    • name: string

      The name or ID of the image to remove

    • Optionalforce: boolean

      If true, force the removal of the image even if it is being used by stopped containers or has other tags

    • Optionalnoprune: boolean

      If true, do not delete untagged parent images

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options

    Returns Promise<AxiosResponse<ImageDeleteResponseItem[], any>>

    A promise that resolves to the response of the image removal operation.

    Response codes:

    • 200: Image removed successfully
    • 400: Bad parameter
    • 404: No such image
    • 409: Conflict
    • 500: Server error
  • Get a tarball containing all images and metadata for a repository. If name is a specific name and tag (e.g. ubuntu:latest), then only that image (and its parents) are returned. If name is an image ID, similarly only that image (and its parents) are returned, but with the exclusion of the repositories file in the tarball, as there were no image names referenced.

    An image tarball contains one directory per image layer (named using its long ID), each containing these files:

    • VERSION: currently 1.0 - the file format version
    • json: detailed layer information, similar to docker inspect layer_id
    • layer.tar: A tarfile containing the filesystem changes in this layer

    The layer.tar file contains aufs style .wh..wh.aufs files and directories for storing attribute changes and deletions. If the tarball defines a repository, the tarball should also include a repositories file at the root that contains a list of repository and tag names mapped to layer IDs.

    {
    "hello-world": {
    "latest": "565a9d68a73f6706862bfe8409a7f659776d4d60a8d096eb4a3cbce6999cc2a1"
    }
    }

    Parameters

    • name: string

      Image name or ID

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<File, any>>

    A promise that resolves to the response of the image export operation.

    Response codes:

    • 200: Image exported successfully
    • 400: Bad parameter
    • 404: No such image
    • 500: Server error
  • Retrieve a tarball containing all images and metadata for multiple image repositories. For each value in the names parameter:

    • If it is a specific name and tag (e.g., ubuntu:latest), only that image (and its parents) are returned.
    • If it is an image ID, only that image (and its parents) are returned, and there will be no names referenced in the 'repositories' file for this image ID. For details on the format, see the export image endpoint.

    Parameters

    • Optionalnames: string[]

      Image names to filter by

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<File, any>>

    A promise that resolves to the response of the image export operation.

    Response codes:

    • 200: Images exported successfully
    • 400: Bad parameter
    • 404: No such image
    • 500: Server error
  • Retrieve the parent layers of a specified image.

    Parameters

    • name: string

      The name or ID of the image

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<HistoryResponseItem[], any>>

    A promise that resolves to the response of the image history operation.

    Response codes:

    • 200: Successfully retrieved image history
    • 400: Invalid parameter
    • 404: Image not found
    • 500: Internal server error
  • Retrieve detailed information about a specific image.

    Parameters

    • name: string

      The name or ID of the image.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<ImageInspect, any>>

    A promise that resolves to the response of the image inspection operation.

    Response codes:

    • 200: Successfully retrieved image information
    • 400: Invalid parameter
    • 404: Image not found
    • 500: Internal server error
  • Retrieves a list of images on the server. This method uses a different, smaller representation of an image compared to inspecting a single image.

    Parameters

    • Optionalall: boolean

      Show all images. By default, only images from a final layer (no children) are shown.

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the images list. Available filters:

      • before=(<image-name>[:<tag>], <image id> or <image@digest>)
      • dangling=true
      • label=key or label="key=value" of an image label
      • reference=(<image-name>[:<tag>])
      • since=(<image-name>[:<tag>], <image id> or <image@digest>)
    • Optionaldigests: boolean

      Show digest information as a RepoDigests field on each image.

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<ImageSummary[], any>>

    A promise that resolves to the response of the image list operation.

    Response codes:

    • 200: Successfully retrieved list of images
    • 400: Bad parameter
    • 500: Server error
  • Load a set of images and tags into a repository. For details on the format, see the export image endpoint.

    Parameters

    • Optionalquiet: boolean

      Suppress progress details during load.

    • OptionalimagesTarball: File

      Tar archive containing images.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the image load operation.

    Response codes:

    • 200: Successfully loaded images
    • 400: Bad parameter
    • 404: Not found
    • 500: Internal server error
  • Deletes unused images from the server.

    Parameters

    • Optionalfilters: string

      Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters:

      • dangling=<boolean> When set to true (or 1), prune only unused and untagged images. When set to false (or 0), all unused images are pruned.
      • until=<string> Prune images created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.
      • label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>) Prune images with (or without, in case label!=... is used) the specified labels.
    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<ImagePruneResponse, any>>

    A promise that resolves to the response of the image prune operation.

    Response codes:

    • 200: Successfully deleted unused images
    • 400: Bad parameter
    • 500: Server error
  • Push an image to a registry. If you want to push an image to a private registry, the image must already have a tag that references the registry. For example, registry.example.com/myimage:latest. The push is cancelled if the HTTP connection is closed.

    Parameters

    • name: string

      The name or ID of the image.

    • xRegistryAuth: string

      A base64url-encoded authentication configuration. Refer to the authentication section for details.

    • Optionaltag: string

      The tag to associate with the image on the registry.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the image push operation.

    Response codes:

    • 200: Successfully pushed the image
    • 400: Bad parameter
    • 401: Authentication required
    • 404: Image not found
    • 500: Internal server error
  • Search for an image on Docker Hub.

    Parameters

    • term: string

      The term to search for.

    • Optionallimit: number

      The maximum number of results to return.

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the images list. Available filters:

      • is-automated=(true|false)
      • is-official=(true|false)
      • stars=<number> Matches images that have at least 'number' stars.
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<ImageSearchResponseItem[], any>>

    A promise that resolves to the response of the image search operation.

    Response codes:

    • 200: Successfully returned the search results
    • 400: Bad parameter
    • 500: Server error
  • Tag an image so that it becomes part of a repository.

    Parameters

    • name: string

      The name or ID of the image to tag.

    • Optionalrepo: string

      The repository to tag in. For example, someuser/someimage.

    • Optionaltag: string

      The name of the new tag.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the image tag operation.

    Response codes:

    • 201: Successfully tagged the image
    • 400: Bad parameter
    • 404: No such image
    • 409: Conflict
    • 500: Server error

Network API

  • Connect a container to a network.

    Parameters

    • id: string

      Network ID or name

    • container: NetworkDisconnectRequest

      The container to connect to the network

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the network connect operation.

    Response codes:

    • 200: Successfully connected the container to the network
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: No such network
    • 500: Server error
  • Create a new network with the specified configuration.

    Parameters

    • networkConfig: NetworkCreateRequest

      The configuration for the new network

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options

    Returns Promise<AxiosResponse<NetworkCreateResponse, any>>

    A promise that resolves to the response of the network creation operation.

    Response codes:

    • 201: Successfully created the network
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: No such network
    • 409: Conflict
    • 500: Server error
  • Remove a network by its ID or name.

    Parameters

    • id: string

      The ID or name of the network to be removed

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the network removal operation.

    Response codes:

    • 204: Successfully removed the network
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: No such network
    • 500: Server error
  • Disconnect a container from a network.

    Parameters

    • id: string

      The ID or name of the network

    • container: NetworkConnectRequest

      The container to disconnect from the network

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the network disconnection operation.

    Response codes:

    • 200: Successfully disconnected the container from the network
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: No such network
    • 500: Server error
  • Inspect a network by its ID or name.

    Parameters

    • id: string

      The ID or name of the network to inspect

    • Optionalverbose: boolean

      If true, provides detailed inspect output for troubleshooting

    • Optionalscope: string

      Filter the network by scope (swarm, global, or local)

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options

    Returns Promise<AxiosResponse<Network, any>>

    A promise that resolves to the response of the network inspection operation.

    Response codes:

    • 200: Successfully inspected the network
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: No such network
    • 500: Server error
  • Returns a list of networks. For details on the format, see the network inspect endpoint. Note that it uses a different, smaller representation of a network than inspecting a single network. For example, the list of containers attached to the network is not propagated in API versions 1.28 and up.

    Parameters

    • Optionalfilters: string

      JSON encoded value of the filters (a map[string][]string) to process on the networks list. Available filters:

      • dangling=<boolean> When set to true (or 1), returns all networks that are not in use by a container. When set to false (or 0), only networks that are in use by one or more containers are returned.
      • driver=<driver-name> Matches a network's driver.
      • id=<network-id> Matches all or part of a network ID.
      • label=<key> or label=<key>=<value> Matches a network label.
      • name=<network-name> Matches all or part of a network name.
      • scope=["swarm"|"global"|"local"] Filters networks by scope (swarm, global, or local).
      • type=["custom"|"builtin"] Filters networks by type. The custom keyword returns all user-defined networks.
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Network[], any>>

    A promise that resolves to the response of the network listing operation.

    Response codes:

    • 200: Successfully listed networks
    • 400: Bad parameter
    • 403: Operation forbidden
    • 500: Server error
  • Delete unused networks.

    Parameters

    • Optionalfilters: string

      Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters:

      • until=<timestamp> Prune networks created before this timestamp. The <timestamp> can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10m, 1h30m) computed relative to the daemon machine’s time.
      • label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>) Prune networks with (or without, in case label!=... is used) the specified labels.
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<NetworkPruneResponse, any>>

    A promise that resolves to the response of the network prune operation.

    Response codes:

    • 200: Successfully deleted unused networks
    • 400: Bad parameter
    • 403: Operation forbidden
    • 500: Server error

Node API

  • Deletes a node from the swarm.

    Parameters

    • id: string

      The ID or name of the node

    • Optionalforce: boolean

      Force remove a node from the swarm

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the node deletion operation.

    Response codes:

    • 200: Node successfully deleted
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Node not found
    • 500: Server error
  • Inspect a node to retrieve detailed information.

    Parameters

    • id: string

      The ID or name of the node

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Node, any>>

    A promise that resolves to the response of the node inspection operation.

    Response codes:

    • 200: Node successfully inspected
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Node not found
    • 500: Server error
  • Lists all nodes in the swarm.

    Parameters

    • Optionalfilters: string

      Filters to process on the nodes list, encoded as JSON (a map[string][]string). Available filters:

      • id=<node id>
      • label=<engine label>
      • membership=(accepted|pending)
      • name=<node name>
      • node.label=<node label>
      • role=(manager|worker)
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Node[], any>>

    A promise that resolves to the response of the node listing operation.

    Response codes:

    • 200: Nodes successfully listed
    • 400: Bad parameter
    • 403: Operation forbidden
    • 500: Server error
  • Update a node with the specified ID and version.

    Parameters

    • id: string

      The ID of the node

    • version: number

      The version number of the node object being updated. This is required to avoid conflicting writes.

    • Optionalbody: NodeSpec

      The new specification for the node

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the node update operation.

    Response codes:

    • 200: Node successfully updated
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Node not found
    • 500: Server error

Plugin API

  • Retrieves the privileges required by a plugin.

    Parameters

    • remote: string

      The name of the plugin. The :latest tag is optional, and is the default if omitted.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<PluginPrivilege[], any>>

    A promise that resolves to the response of the plugin privileges operation.

    Response codes:

    • 200: Plugin privileges successfully retrieved
    • 204: No content
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 500: Server error
  • Create a new plugin with the specified name and context.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional, and is the default if omitted.

    • OptionaltarContext: File

      Path to tar containing plugin rootfs and manifest.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin creation operation.

    Response codes:

    • 201: Plugin successfully created
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error
  • Removes a plugin.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional, and is the default if omitted.

    • Optionalforce: boolean

      Disable the plugin before removing. This may result in issues if the plugin is in use by a container.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Plugin, any>>

    A promise that resolves to the response of the plugin removal operation.

    Response codes:

    • 200: Plugin successfully removed
    • 204: No content
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error
  • Disable a plugin.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional, and is the default if omitted.

    • Optionalforce: boolean

      Force disable a plugin even if still in use.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin disable operation.

    Response codes:

    • 200: Plugin successfully disabled
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error
  • Enable a plugin.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional, and is the default if omitted.

    • Optionaltimeout: number

      Set the HTTP client timeout (in seconds).

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin enable operation.

    Response codes:

    • 200: Plugin successfully enabled
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 500: Server error
  • Inspect a plugin to retrieve detailed information about it.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional, and is the default if omitted.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Plugin, any>>

    A promise that resolves to the response of the plugin inspect operation.

    Response codes:

    • 200: Plugin details successfully retrieved
    • 404: Plugin not found
    • 500: Server error
  • Returns information about installed plugins.

    Parameters

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the plugin list. Available filters:

      • capability=<capability name>
      • enable=<true>|<false>
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Plugin[], any>>

    A promise that resolves to the response of the plugin list operation.

    Response codes:

    • 200: List of plugins returned successfully
    • 500: Server error
  • Pulls and installs a plugin. After the plugin is installed, it can be enabled using the POST /plugins/{name}/enable endpoint.

    Parameters

    • remote: string

      The remote reference for the plugin to install. The :latest tag is optional and is used as the default if omitted.

    • Optionalname: string

      The local name for the pulled plugin. The :latest tag is optional and is used as the default if omitted.

    • OptionalxRegistryAuth: string

      A base64url-encoded authentication configuration to use when pulling a plugin from a registry. Refer to the authentication section for details.

    • Optionalbody: PluginPrivilege[]

      The privileges to grant the plugin.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin pull operation.

    Response codes:

    • 200: Plugin pulled and installed successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error
  • Push a plugin to the registry.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional and is the default if omitted.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin push operation.

    Response codes:

    • 200: Plugin pushed successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error
  • Configures a plugin with the specified settings.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional and is the default if omitted.

    • Optionalbody: string[]

      The configuration settings for the plugin.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin configuration operation.

    Response codes:

    • 200: Plugin configured successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error
  • Upgrade a plugin to a newer version.

    Parameters

    • name: string

      The name of the plugin. The :latest tag is optional and is the default if omitted.

    • remote: string

      Remote reference to upgrade to. The :latest tag is optional and is used as the default if omitted.

    • OptionalxRegistryAuth: string

      A base64url-encoded authentication configuration to use when pulling a plugin from a registry. Refer to the authentication section for details.

    • Optionalbody: PluginPrivilege[]

      The privileges required by the plugin.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the plugin upgrade operation.

    Response codes:

    • 200: Plugin upgraded successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Plugin not found
    • 409: Conflict
    • 500: Server error

Secret API

  • Creates a new secret.

    Parameters

    • Optionalbody: SecretCreateRequest

      The request body containing the secret details.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<IdResponse, any>>

    A promise that resolves to the response of the secret creation operation.

    Response codes:

    • 201: Secret created successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 409: Conflict
    • 500: Server error
  • Deletes a secret by its ID.

    Parameters

    • id: string

      The ID of the secret to delete.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the secret deletion operation.

    Response codes:

    • 204: Secret deleted successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Secret not found
    • 500: Server error
  • Retrieve detailed information about a specific secret.

    Parameters

    • id: string

      The ID of the secret to inspect.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Secret, any>>

    A promise that resolves to the response of the secret inspection operation.

    Response codes:

    • 200: Secret inspected successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Secret not found
    • 500: Server error
  • Lists all secrets.

    Parameters

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the secrets list. Available filters:

      • id=<secret id>
      • label=<key> or label=<key>=value
      • name=<secret name>
      • names=<secret name>
    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Secret[], any>>

    A promise that resolves to the response of the secrets list operation.

    Response codes:

    • 200: Secrets listed successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 500: Server error
  • Update a Secret

    Parameters

    • id: string

      The ID or name of the secret.

    • version: number

      The version number of the secret object being updated. This is required to avoid conflicting writes.

    • Optionalbody: SecretSpec

      The spec of the secret to update. Currently, only the Labels field can be updated. All other fields must remain unchanged from the SecretInspect endpoint response values.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the secret update operation.

    Response codes:

    • 200: Secret updated successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Secret not found
    • 409: Conflict
    • 500: Server error

Service API

  • Create a new service.

    Parameters

    • body: ServiceCreateRequest

      The service creation request body.

    • OptionalxRegistryAuth: string

      A base64url-encoded authentication configuration for pulling from private registries. Refer to the authentication section for details.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<ServiceCreateResponse, any>>

    A promise that resolves to the response of the service creation operation.

    Possible response codes:

    • 200: Service created successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 409: Conflict
    • 500: Server error
  • Deletes a service by its ID or name.

    Parameters

    • id: string

      The ID or name of the service to delete.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<void, any>>

    A promise that resolves to the response of the service delete operation.

    Possible response codes:

    • 200: Service deleted successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Service not found
    • 409: Conflict
    • 500: Server error
  • Inspect a service by its ID or name.

    Parameters

    • id: string

      The ID or name of the service to inspect.

    • OptionalinsertDefaults: boolean

      Fill empty fields with default values.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Service, any>>

    A promise that resolves to the response of the service inspection operation.

    Possible response codes:

    • 200: Service inspected successfully
    • 400: Bad parameter
    • 403: Operation forbidden
    • 404: Service not found
    • 500: Server error
  • List services with optional filters and status.

    Parameters

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the services list. Available filters:

      • id=<service id>
      • label=<service label>
      • mode=["replicated"|"global"]
      • name=<service name>
    • Optionalstatus: boolean

      Include service status, with count of running and desired tasks.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<Service[], any>>

    A promise that resolves to the response of the service list operation.

    Possible response codes:

    • 200: Services listed successfully
    • 400: Bad parameter
    • 500: Server error

Service API @returns>} Possible response codes: - 101 (Switching Protocols): The server is switching protocols. - 200 (OK): The request was successful. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request.

  • Retrieve stdout and stderr logs from a service. See also /containers/{id}/logs. Note: This endpoint works only for services with the local, json-file or journald logging drivers.

    Parameters

    • id: string

      The ID or name of the service

    • Optionaldetails: boolean

      Show service context and extra details provided to logs.

    • Optionalfollow: boolean

      Keep the connection open after returning logs.

    • Optionalstdout: boolean

      Return logs from stdout

    • Optionalstderr: boolean

      Return logs from stderr

    • Optionalsince: number

      Only return logs since this time, as a UNIX timestamp

    • Optionaltimestamps: boolean

      Add timestamps to every log line

    • Optionaltail: string

      Only return this number of log lines from the end of the logs. Specify as an integer or all to output all log lines.

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request options.

    Returns Promise<AxiosResponse<File, any>>

Service API @returns>} Possible response codes: - 200 (OK): The service was updated successfully. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request.

  • Update a service with the specified parameters.

    Parameters

    • id: string

      The ID or name of the service.

    • version: number

      The version number of the service object being updated. This is required to avoid conflicting writes. This version number should be the value as currently set on the service before the update. You can find the current version by calling GET /services/{id}.

    • body: ServiceUpdateRequest

      The service update request body.

    • OptionalregistryAuthFrom: ServiceUpdateRegistryAuthFromEnum

      If the X-Registry-Auth header is not specified, this parameter indicates where to find registry authorization credentials.

    • Optionalrollback: string

      Set this parameter to previous to cause a server-side rollback to the previous service spec. The supplied spec will be ignored in this case.

    • OptionalxRegistryAuth: string

      A base64url-encoded auth configuration for pulling from private registries. Refer to the authentication section for details.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameter to override HTTP request options.

    Returns Promise<AxiosResponse<ServiceUpdateResponse, any>>

Session API @returns>} Possible response codes: - 101 (Switching Protocols): The server is switching protocols as requested by the client. - 200 (OK): The request was successful, and the server responded with the requested data. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

  • Start a new interactive session with a server. This session allows the server to call back to the client for advanced capabilities.

    This endpoint hijacks the HTTP connection to HTTP2 transport, allowing the client to expose gRPC services on that connection.

    For example, the client sends this request to upgrade the connection:

    POST /session HTTP/1.1
    Upgrade: h2c
    Connection: Upgrade

    The Docker daemon responds with a 101 UPGRADED response followed by the raw stream:

    HTTP/1.1 101 UPGRADED
    Connection: Upgrade
    Upgrade: h2c

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request

    Returns Promise<AxiosResponse<void, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the manager was unlocked. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Unlock a locked manager node in the swarm.

    Parameters

    • body: SwarmUnlockRequest

      The request body containing the unlock key.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<void, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the node joined the swarm. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

  • Joins an existing swarm.

    Parameters

    • body: SwarmJoinRequest

      The request body containing the swarm join parameters.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<void, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the node left the swarm. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

  • Leave a swarm.

    Parameters

    • Optionalforce: boolean

      Force leave swarm, even if this is the last manager or that it will break the cluster.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<void, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the server responded with the requested data. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

  • Inspects the current state of the swarm.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<Swarm, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the swarm was initialized. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request.

  • Initializes a new swarm.

    Parameters

    • body: SwarmInitRequest

      The request body containing the swarm initialization parameters.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<string, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the swarm was updated. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server. - 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource.

  • Update a swarm with the specified parameters.

    Parameters

    • version: number

      The version number of the swarm object being updated. This is required to avoid conflicting writes.

    • body: SwarmSpec

      The swarm specification to update.

    • OptionalrotateWorkerToken: boolean

      Rotate the worker join token.

    • OptionalrotateManagerToken: boolean

      Rotate the manager join token.

    • OptionalrotateManagerUnlockKey: boolean

      Rotate the manager unlock key.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<void, any>>

Swarm API @returns>} Possible response codes: - 200 (OK): The request was successful, and the unlock key was retrieved. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Retrieve the unlock key for the swarm.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<UnlockKeyResponse, any>>

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the credentials are valid. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Validate credentials for a registry and, if available, get an identity token for accessing the registry without a password.

    Parameters

    • OptionalauthConfig: AuthConfig

      Authentication configuration to check.

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<SystemAuthResponse, any>>

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the data usage information is returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Retrieve data usage information from the system.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Optional parameters to override the HTTP request.

    Returns Promise<AxiosResponse<SystemDataUsageResponse, any>>

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the events are being streamed. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Stream real-time events from the server. Various objects within Docker report events when something happens to them.

    Containers report these events: attach, commit, copy, create, destroy, detach, die, exec_create, exec_detach, exec_start, exec_die, export, health_status, kill, oom, pause, rename, resize, restart, start, stop, top, unpause, update, and prune.

    Images report these events: delete, import, load, pull, push, save, tag, untag, and prune.

    Volumes report these events: create, mount, unmount, destroy, and prune.

    Networks report these events: create, connect, disconnect, destroy, update, remove, and prune.

    The Docker daemon reports these events: reload.

    Services report these events: create, update, and remove.

    Nodes report these events: create, update, and remove.

    Secrets report these events: create, update, and remove.

    Configs report these events: create, update, and remove.

    The Builder reports prune events.

    Parameters

    • Optionalparams: {
          filters?: string;
          options?: RawAxiosRequestConfig;
          since?: string;
          until?: string;
      }

      Parameters for monitoring events

      • Optionalfilters?: string

        A JSON encoded value of filters (a map[string][]string) to process on the event list. Available filters:

        • config=<string> config name or ID
        • container=<string> container name or ID
        • daemon=<string> daemon name or ID
        • event=<string> event type
        • image=<string> image name or ID
        • label=<string> image or container label
        • network=<string> network name or ID
        • node=<string> node ID
        • plugin=<string> plugin name or ID
        • scope=<string> local or swarm
        • secret=<string> secret name or ID
        • service=<string> service name or ID
        • type=<string> object to filter by, one of container, image, volume, network, daemon, plugin, node, service, secret or config
        • volume=<string> volume name
      • Optionaloptions?: RawAxiosRequestConfig

        Override HTTP request option.

      • Optionalsince?: string

        Show events created since this timestamp (unix) then stream new events.

      • Optionaluntil?: string

        Show events created until this timestamp (unix) then stop streaming.

    Returns Promise<AxiosResponse<EventMessage, any>>

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the server is accessible. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • This endpoint is used to check if the server is accessible.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request option.

    Returns Promise<AxiosResponse<string, any>>

  • This endpoint is used to check if the server is accessible.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request option.

    Returns Promise<AxiosResponse<string, any>>

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the server returned the Docker version and system information. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • This endpoint returns the version of Docker that is running and various information about the system that Docker is running on.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request option.

    Returns Promise<AxiosResponse<SystemVersion, any>>

System API @returns>} Possible response codes: - 200 (OK): The request was successful, and the system information is returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Retrieves system information from the Docker daemon.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override HTTP request option.

    Returns Promise<AxiosResponse<SystemInfo, any>>

Task API @returns>} Possible response codes: - 200 (OK): The request was successful, and the list of tasks is returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • This endpoint allows you to list tasks with optional filters.

    Parameters

    • Optionalfilters: string

      A JSON encoded value of the filters (a map[string][]string) to process on the tasks list. Available filters:

      • desired-state=(running | shutdown | accepted)
      • id=<task id>
      • label=key or label="key=value"
      • name=<task name>
      • node=<node id or name>
      • service=<service name>
    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<Task[], any>>

    Throws an error if the required parameters are not provided.

Task API @returns>} Possible response codes: - 200 (OK): The request was successful, and the logs are returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server. - 507 (Insufficient Storage): The server is unable to store the representation needed to complete the request.

  • This endpoint allows you to get stdout and stderr logs from a task. See also /containers/{id}/logs. Note: This endpoint works only for services with the local, json-file or journald logging drivers.

    Parameters

    • id: string

      The ID of the task to get logs from.

    • Optionaldetails: boolean

      Show task context and extra details provided to logs.

    • Optionalfollow: boolean

      Keep connection after returning logs.

    • Optionalstdout: boolean

      Return logs from stdout.

    • Optionalstderr: boolean

      Return logs from stderr.

    • Optionalsince: number

      Only return logs since this time, as a UNIX timestamp.

    • Optionaltimestamps: boolean

      Add timestamps to every log line.

    • Optionaltail: string

      Only return this number of log lines from the end of the logs. Specify as an integer or all to output all log lines.

    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<File, any>>

    Throws an error if the required parameters are not provided.

Task API @returns>} Possible response codes: - 200 (OK): The request was successful, and the task details are returned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • This endpoint allows you to inspect a specific task by its ID.

    Parameters

    • id: string

      The ID of the task to inspect.

    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<Task, any>>

    Throws an error if the required parameters are not provided.

Volume API @returns>} Possible response codes: - 200 (OK): The volume was successfully inspected. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Inspects the specified volume and returns detailed information about it.

    Parameters

    • name: string

      The name or ID of the volume to inspect.

    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<Volume, any>>

    Throws an error if the required parameters are not provided.

Volume API @returns>} Possible response codes: - 200 (OK): The volumes were successfully listed. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Lists all volumes.

    Parameters

    • Optionalfilters: string

      JSON encoded value of the filters (a map[string][]string) to process on the volumes list. Available filters:

      • dangling=<boolean>: When set to true (or 1), returns all volumes that are not in use by a container. When set to false (or 0), only volumes that are in use by one or more containers are returned.
      • driver=<volume-driver-name>: Matches volumes based on their driver.
      • label=<key> or label=<key>:<value>: Matches volumes based on the presence of a label alone or a label and a value.
      • name=<volume-name>: Matches all or part of a volume name.
    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<VolumeListResponse, any>>

    Throws an error if the required parameters are not provided.

Volume API @returns>} Possible response codes: - 200 (OK): The volumes were successfully pruned. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Deletes unused volumes.

    Parameters

    • Optionalfilters: string

      Filters to process on the prune list, encoded as JSON (a map[string][]string). Available filters:

      • label (label=<key>, label=<key>=<value>, label!=<key>, or label!=<key>=<value>): Prune volumes with (or without, in case label!=... is used) the specified labels.
    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<VolumePruneResponse, any>>

    Throws an error if the required parameters are not provided.

Volume API @returns>} Possible response codes: - 201 (Created): The volume was successfully created. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Creates a new volume with the specified configuration.

    Parameters

    • volumeConfig: VolumeCreateOptions

      The configuration options for the volume to be created.

    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<Volume, any>>

    Throws an error if the required parameters are not provided.

Volume API @returns>} Possible response codes: - 204 (No Content): The volume was successfully removed. - 400 (Bad Request): The server could not understand the request due to invalid syntax. - 401 (Unauthorized): The client must authenticate itself to get the requested response. - 403 (Forbidden): The client does not have access rights to the content. - 404 (Not Found): The server could not find the requested resource. - 409 (Conflict): The request could not be completed due to a conflict with the current state of the target resource. - 500 (Internal Server Error): The server encountered an internal error and could not complete the request. - 503 (Service Unavailable): The server is not ready to handle the request. - 504 (Gateway Timeout): The server did not receive a timely response from an upstream server.

  • Instructs the driver to remove the specified volume.

    Parameters

    • name: string

      The name or ID of the volume to be removed.

    • Optionalforce: boolean

      If true, forces the removal of the volume.

    • Optionaloptions: RawAxiosRequestConfig

      Optional HTTP request options to override the default settings.

    Returns Promise<AxiosResponse<void, any>>

    Throws an error if the required parameters are not provided.