DEV Community

Cover image for Doko - 🐳 docker you know but with TUI
abdfn
abdfn

Posted on • Edited on

Doko - 🐳 docker you know but with TUI

Doko

GitHub logo abdfnx / doko

🐳 The docker you know but with TUI.

🐳 docker you know but with TUI.

preview

this app is inspired from lazydocker

Installation

Using script

  • Shell


curl -sL https://git.io/doko | bash


Enter fullscreen mode Exit fullscreen mode
  • PowerShell


iwr -useb https://git.io/doko-win | iex


Enter fullscreen mode Exit fullscreen mode

or with resto



# shell
resto install https://git.io/doko

# powershell
resto install https://git.io/doko-win


Enter fullscreen mode Exit fullscreen mode

then restart your powershell

Go package manager



go install github.com/abdfnx/doko@latest


Enter fullscreen mode Exit fullscreen mode

Via Docker



docker run -itv /var/run/docker.sock:/var/run/docker.sock dokocli/doko
docker run -itv /var/run/docker.sock:/var/run/docker.sock dokocli/doko <FLAGS>
docker run -itv /var/run/docker.sock:/var/run/docker.sock dokocli/doko <CMD>


Enter fullscreen mode Exit fullscreen mode

full container:



docker run -itv /var/run/docker.sock:/var/run/docker.sock dokocli/doko-full


Enter fullscreen mode Exit fullscreen mode

Usage

  • Open Doko UI


doko


Enter fullscreen mode Exit fullscreen mode
  • With specific endpoint


doko --endpoint <DOCKER_ENDPOINT>


Enter fullscreen mode Exit fullscreen mode


* Use another docker engine version
doko --engine "1.40"


Enter fullscreen mode Exit fullscreen mode
  • Log file path


doko --log-file /home/doko/my-log.log

Enter fullscreen mode Exit fullscreen mode




Flags



--ca string          The path to the TLS CA (ca.pem)
Enter fullscreen mode Exit fullscreen mode

-c, --cert string The path to the TLS certificate (cert.pem)
-e, --endpoint string The docker endpoint to use (default "unix:///var/run/docker.sock")
-g, --engine string The docker engine version (default "1.41")
--help Help for doko
-k, --key string The path to the TLS key (key.pem)
-l, --log-file string The path to the log file
-o, --log-level string The log level (default "info")

Enter fullscreen mode Exit fullscreen mode




Keybindings (Shortcuts)

name mission key(s)
all quit q
all change panel Tab or Shift + Tab
list panels next entry j or
list panels next page Ctrl or f
list panels previous entry k or
list panels previous page Ctrl or b
list panels scroll to top g
list panels scroll to bottom G
image list pull image p
image list import image i
image list save image s
image list load image Ctrl + l
image list find images f
image list delete image d
image list filter image /
image list create container c
image list inspect image Enter
image list refresh image list Ctrl + r
container list export container e
container list commit container c
container list filter image /
container list exec container cmd Ctrl + e
container list start container t
container list stop container s
container list kill container Ctrl + k
container list delete container d
container list inspect container Enter
container list rename container r
container list refresh container list Ctrl + r
container logs show container logs Ctrl + l
volume list create volume c
volume list delete volume d
volume list filter volume /
volume list inspect volume Enter
volume list refresh volume list Ctrl + r
network list delete network d
network list inspect network Enter
network list filter network /
pull image pull image Enter
pull image close panel Esc
create container next input box Tab
create container previous input box Shift + Tab
detail cursor dwon j
detail cursor up k
detail next page Ctrl or f
detail previous page Ctrl or b
search images search image Enter
search images close panel Esc
search result next image j
search result previous image k
search result pull image Enter
search result close panel q
create volume close panel Esc
create volume next input box Tab
create volume previous input box Shift + Tab

Top comments (3)

Collapse
 
radishfabio profile image
radishfabio

I like very much doko. I have a problem: how can I quit from the container logs (ctrl+l to enter)?

Collapse
 
abdfnx profile image
abdfn

Hi @radishfabio, just press one from esc or q or Ctrl+Q keys

Collapse
 
radishfabio profile image
radishfabio

Thanky you for the reply, unfortunately all these keys don't work