This repository contains the source and instructions for adding the Swagger Editor to Docker Desktop as an extension.
From version 4.10.0 of Docker Desktop you no longer need to manaully install the Docker extension CLI as it is now bundled by default.
If for some reason you are still running a version of Docker Desktop that is less than 4.10.0 (and greater than 4.8.x) then you will need to manually install the Docker extension CLI binary.
You can download the binary from here and then follow the instructions to setup the plugin.
For example if you are on Linux then its a matter of running the following:
wget https://github.com/docker/extensions-sdk/releases/download/v0.2.4/desktop-extension-cli-linux-amd64.tar.gz tar -xvzf desktop-extension-cli-linux-amd64.tar.gz mkdir -p ~/.docker/cli-plugins mv docker-extension ~/.docker/cli-plugins
If you want to build the extension locally then run the following:
# build the extension
docker buildx build -t noelm/swagger-editor-extension:4.4.2 .
# validate the extension
docker extension validate noelm/swagger-editor-extension:4.4.2
# you should get the following message:
# The extension image "noelm/swagger-editor-extension:4.4.2" is valid
You can of course skip the build process above and jump straight to installation by running the following:
Note The current image hosted on docker hub with the 4.4.2
tag has been tested on Ubuntu 20.04 and MacOS.
docker extension install noelm/swagger-editor-extension:4.4.2
docker extension uninstall noelm/swagger-editor-extension:4.4.2