Files
Allie Sadler 4bcb3b2dc3 extensions-sdk reorg
- extensions-sdk reorg
- removal of tocs from API reference pages

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-06-23 12:32:13 +02:00

1.3 KiB

title, description, keywords
title description keywords
Extension UI API Docker extension development overview Docker, extensions, sdk, development

The extensions UI runs in a sandboxed environment and doesn't have access to any electron or nodejs APIs.

The extension UI API provides a way for the frontend to perform different actions and communicate with the Docker Desktop dashboard or the underlying system.

JavaScript API libraries, with Typescript support, are available in order to get all the API definitions in to your extension code.

import { createDockerDesktopClient } from '@docker/extension-api-client';

export function App() {
  // obtain Docker Desktop client
  const ddClient = createDockerDesktopClient();
  // use ddClient to perform extension actions
}

The ddClient object gives access to various APIs:

Find the Extensions API reference here.