Docker CLI Plugins

Docker CLI Plugins

Extend docker with new functionality

Located in ~/.docker/cli-plugins

Executable file called docker-* where * is the new command

Command line parameters are passed to docker-*

Plugin must support parameter docker_cli_plugin_metadata and return the following

    "Vendor":"Nicholas Dille",
    "ShortDescription":"Sample metadata",

Demo: Docker CLI Plugins

Place docker-distribution in ~/.docker/cli-plugins


docker build --tag cli-plugin .

Enter container and test:

docker run -it --rm \
    --volume /var/run/docker.sock:/var/run/docker.sock \

Docker Client Plugins Manager (CLIP)

Created by Docker Captain Łukasz Lach

See GitHub

How it works

Framework for running containerized client plugins

Distributed using Docker registry

Plugin list

expose, publish, showcontext, microscan, dive, runlike, sh, hello