docker-commander is a cross-platform, customizable, execution commands in docker containers dashboard based on termui
sudo wget -qO- https://github.com/daylioti/docker-commander/releases/download/1.2.0/docker-commander_1.2.0_linux_amd64.tgz | sudo tar xvz --overwrite -C /usr/local/bin
sudo chmod +x /usr/local/bin/docker-commanderbrew install wget
sudo wget -qO- https://github.com/daylioti/docker-commander/releases/download/1.2.0/docker-commander_1.2.0_darwin_amd64.tgz | sudo tar xvz -C /usr/local/bin
sudo chmod +x /usr/local/bin/docker-commanderdocker-commander is also avaliable for Arch in the AUR
| Option | Description |
|---|---|
| -api-host | docker api host. Example: tcp://127.0.0.1:2376 |
| --tty | enable docker exec tty option. |
| --color | display ANSI colors in command output. |
| -h | display help dialog |
| -c | path to yml config file or url to download yml, default - ./config.yml. Also yml config can be used from pipe |
| -v | output version information and exit |
| Key | Action |
|---|---|
| <Enter> | Execute command |
| <Left>, <Right>, <Up>, <Down>, H, J, K, L | Menu list controls |
| <Tab> | Switch between terminal and menu |
| <C-r> | Remove selected process in tab. |
| <C-v> | Paste from clipboard to input field. |
| <End>, <Home>, <PageUp>, <PageDown>, <MouseWheelDown>, <MouseWheelUp>, <Up>, <Down> | Scroll command output |
| q, Q | Quit from docker-commander, except opened input popup |
| <C-c> | Quit from docker-commander from anywhere |
docker-commander requires config file to build menu, default config path - ./config.yml.
You can also use -c param to specify path to yml file or url to download.
By default docker-commander tries to find local docker api client or you can specify it with
-api-host param
Input field works like placeholder but with possibility for user to set variable manually.
- name: input field
exec:
connect:
container_name: ubuntu
cmd: echo @input1
input:
input1: Type something.On execute this command docker-commander will display popup into which you can enter your values.
Paste from clipboard - you should install one of those packages xsel, xclip, wl-clipboard
config:
- name: "menu item name"
config:
- name: "another child menu item"
config:
- name: "item with command"
exec: # it just example.
connect:
container_image: "flatland-site-reactjs-public"
workdir: "/usr/src/site"
cmd: "npm run-script start"
- name: "item"
config:
- name: "item2"
exec:
connect:
container_image: "ubuntu"
workdir: "/var"
cmd: "ls -lah"
- name: "menu item 2"
config:
- name: "another child menu item 2"
exec:
connect:
container_image: "ubuntu"
cmd: "ls -lah /var"Configuration of menu can be with any depth, yml support anchors for some optimizations