Skip to content

Instantly share code, notes, and snippets.

Forked from thaJeztah/
Created May 6, 2019 15:31
What would you like to do?
Docker Changelog CLI plugin

Docker Changelog CLI plugin

Based on a tweet by @Tomwillfixit

Just a quick fun conversion to make it work as a Docker CLI plugin

To use it (assuming you're running a beta of Docker 19.03):

  1. create the plugins directory

    mkdir -p ~/.docker/cli-plugins
  2. download the "plugin", and save it as ~/.docker/cli-plugins/docker-changelog (note: no .sh extension!)

    curl > ~/.docker/cli-plugins/docker-changelog 
  3. make it executable

    chmod +x ~/.docker/cli-plugins/docker-changelog
  4. run the help command to verify the plugin was installed

    docker help
    Management Commands:
      app*        Docker Application (Docker Inc., v0.8.0-beta1)
      builder     Manage builds
      buildx*     Build with BuildKit (Docker Inc., v0.2.0-tp)
      changelog*  View the Docker Engine changelog (thaJeztah, v0.0.1)
  5. enjoy!

    docker changelog
    # Changelog
    For official release notes for Docker Engine CE and Docker Engine EE, visit the
    [release notes page](
    ## 19.03.0 (2019-05-21)
#!/usr/bin/env bash
docker_cli_plugin_metadata() {
local vendor="thaJeztah"
local version="v0.0.1"
local url=""
local description="View the Docker Engine changelog"
cat <<-EOF
version() {
docker --version | cut -d " " -f 3 | cut -d "," -f 1
docker_changelog() {
curl -s "$(version)/" | more
case "$1" in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment