Skip to content
Extends default docker completion with fzf
Branch: master
Clone or download
Pull request Compare This branch is 9 commits ahead, 1 commit behind Mike-Now:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
LICENSE
Makefile
README.md
docker-fzf-completion.gif
docker-fzf.bash
docker-fzf.zsh

README.md

docker-fzf-completion

Extends default docker completion with fzf

screencast

Installation

  1. Download and install fzf and docker with docker autocompletion
  2. Set default FZF trigger to something else beside ** (optionally)
  export FZF_COMPLETION_TRIGGER=','
  1. Source either docker-fzf.bash or docker-fzf.zsh depending on your shell.

Extension from original code

  • Supports almost commands about container and images like attach, kill, and more.
  • Consider the state of the container. For example, only stopped containers suggested to docker start.
  • Supports subcommands of docker container and docker image.
    • These subcommands have been added since version 1.13.
  • When completion for image commands, use IMAGE_ID instead of REPOSITORY:TAG if selected image has no name: such images will be shown as <none>:<none>.
  • While completion for image commands, show full output of docker images, not only REPOSITORY:TAG IMAGE_ID.

Original code is Mike-Now/docker-fzf-completion(MIT License).

For details, please refer to this blog post.

You can’t perform that action at this time.