docker-fetch

Crates.iodocker-fetch
lib.rsdocker-fetch
version0.1.0
sourcesrc
created_at2024-11-24 17:33:55.032899
updated_at2024-11-24 17:33:55.032899
descriptionA docker previewer for fzf
homepage
repositoryhttps://github.com/kloki/docker-fetch
max_upload_size
id1459444
size24,116
Koen Klinkers (kloki)

documentation

README

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
Commit count: 4

cargo fmt