Lazydocker
Lazydocker is a simple TUI for docker and docker-compose.
It allows you to monitor, manage and inspect docker containers, images, volumes and networks.
Lazydocker has a customizable config.yml
, where you can add custom commands.
Example custom commands
customCommands:
containers:
- name: bash
attach: true
command: docker exec -it {{ .Container.ID }} /bin/sh
- name: logs
attach: true
command: docker logs -f {{ .Container.ID }}
- name: removeall
attach: true
command: "script -q -c 'docker rm -f $(docker ps -aq)'"
- name: kill-rosbag
attach: true
command: docker exec -it {{ .Container.ID }} /bin/sh -c "kill -2 \$(pgrep -f record)"
images:
- name: "Run Image with Custom Command"
command: "script -q -c 'docker run --rm -it {{ .Image.Name }}:{{ .Image.Tag }} /bin/sh' /dev/null"
volumes:
- name: "bash"
- command: "script -q -c 'docker run --rm -it -v {{ .Volume.Name }}:{{ .Volume.Tag }} /bin/sh' /dev/null"