Package and release your extension
This page contains additional information on how to package and distribute Docker extensions.
Docker extensions are packaged as Docker images. The entire extension runtime including the UI, backend services (host or VM), and any necessary binary must be included in the extension image. Every extension image must contain a metadata.json file at the root of its filesystem that defines the contents of the extension.
To package and release an extension, you must build a Docker image (
docker build), and push the image to
docker push) with a specific tag that allows you to manage versions of the extension.
Docker image tags must follow semver conventions in order to allow fetching the latest version of the extension, and to know if there are updates available. See semver.org to learn more about semantic versioning.
Extension images must be multi-arch images so that users can install extensions on ARM/AMD hardware. These multi-arch images can include ARM/AMD specific binaries. Mac users will automatically use the right image based on their architecture. Extensions that install binaries on the host must also provide Windows binaries in the same extension image. See how to build a multi-arch image for your extension.
You can implement extensions without any constraints on the code repository. Docker doesn't need access to the code repository in order to use the extension. Also, you can entirely manage new releases of your extension, without any dependency on Docker Desktop releases.
You can release a new version of your Docker extension by pushing a new image with a new tag to Docker Hub.
Any new image pushed to an image repository corresponding to a Docker Extension defines a new version of that extension. Image tags are used to identify version numbers. Extension versions must follow semver to make it easy to understand and compare versions.
Docker Desktop scans the list of extensions published in the marketplace for new versions, and provides notifications to users when they can upgrade a specific extension. Extensions that aren't part of the marketplace don't have automatic update notifications at the moment.
Users can download and install the newer version of any extension without updating Docker Desktop itself.
Extensions must specify the Extension API version they rely on. Docker Desktop checks the extension required version, and only propose to install extensions that are compatible with the current Docker Desktop installed. Users might need to update Docker Desktop in order to install the latest extensions available.
Extension image labels must specify the API version that the extension relies upon. This allows Docker Desktop to inspect newer versions of extension images without downloading the full extension image upfront.
The Docker Extension SDK is licensed under the Apache 2.0 License and is free to use.
There is no constraint on how each extension should be licensed, this is up to the extension authors to decide when creating a new extension.