#docker #fzf #container #fetch #previewer

app docker-fetch

A docker previewer for fzf

1 unstable release

new 0.1.0 Nov 24, 2024

#319 in Unix APIs

Download history 59/week @ 2024-11-18

59 downloads per month

MIT/Apache

8KB
151 lines

Docker fetch

Intended to be used as a preview for (fzf)https://github.com/junegunn/fzf

Example: Pick a container and shell into.

Add to your .bashrc.

dsh() {
  container=$(docker ps -q | fzf --header="Pick Container" --preview="docker inspect {} | docker-fetch")
  echo -e "\033[36mShell:\033[0m $container"
  docker exec -it $container bash
}

Install

cargo install docker-fetch --locked

Dependencies

~1.7–2.8MB
~53K SLoC