Docker service terminal UI management tool

Time:2021-9-5

Docker service terminal UI management tool

This is a simple terminal based UI management tool, which is mainly applicable todockeranddocker-The management and convenient use of compose containers and services are inspired by gocui and rewritten with go voice.

Docker service terminal UI management tool

1. Functional characteristics

Mild users can use it, but don’t take it as a professional management tool, hahaha

  • seedockerordocker-composeThe state of the container environment is clear at a glance
  • View the log of container / service
  • seecontainerASCII chart of indicators, such as CPU / memory, etc
  • Customize these charts to measure almost any metric you want
  • Go directly to the container / service
  • Restart / delete / rebuild containers / services
  • View the ancestor layer of a given image
  • Pruning disk spacecontainer/Image or volume

Docker service terminal UI management tool

2. Installation method

The installation is also very convenient

Homebrew

# Homebrew
brew tap jesseduffield/lazydocker
brew install lazydocker

Linux/OSX

# Binary Release (Linux/OSX)
curl https://raw.githubusercontent.com/jesseduffield/ 
    lazydocker/master/scripts/install_update_linux.sh | bash

Go

# Go
# Required Go version >= 1.8
go get github.com/jesseduffield/lazydocker

Zsh

# zsh config
echo "alias lzd='lazydocker'" >> ~/.zshrc

Docker

# docker build -t lazydocker .
# docker run -it lazydocker:latest /bin/sh -l
FROM golang:alpine
WORKDIR /go/src/github.com/jesseduffield/lazydocker/
COPY ./ .
RUN CGO_ENABLED=0 GOOS=linux go build
FROM alpine:latest
RUN apk add -U git xdg-utils
WORKDIR /go/src/github.com/jesseduffield/lazydocker/
COPY --from=0 /go/src/github.com/jesseduffield/lazydocker /go/src/github.com/jesseduffield/lazydocker
COPY --from=0 /go/src/github.com/jesseduffield/lazydocker/lazydocker /bin/
RUN echo "alias gg=lazydocker" >> ~/.profile
  1. Keyboard binding

Shortcut keys are more convenient to use

Project

 e: edit lazydocker config
  o: open lazydocker config
  [: previous tab
  ]: next tab
  m: view logs
  enter: focus main panel

Containers

 [: previous tab
  ]: next tab
  d: remove
  e: Hide/Show stopped containers
  s: stop
  r: restart
  a: attach
  D: prune exited containers
  m: view logs
  c: run predefined custom command
  enter: focus main panel

Services

 d: remove containers
  s: stop
  r: restart
  a: attach
  m: view logs
  [: previous tab
  ]: next tab
  R: view restart options
  c: run predefined custom command
  enter: focus main panel

Images

 [: previous tab
  ]: next tab
  d: remove image
  D: prune unused images
  enter: focus main panel

Volumes

 [: previous tab
  ]: next tab
  d: remove volume
  D: prune unused volumes
  enter: focus main panel

Main

 esc: return

Author: Escape link:https://escapelife.github.io/…

Docker service terminal UI management tool