Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lirantal/dockly
Immersive terminal interface for managing docker containers and services
https://github.com/lirantal/dockly
cli command-line-tool console containers docker hacktoberfest nodejs
Last synced: 9 days ago
JSON representation
Immersive terminal interface for managing docker containers and services
- Host: GitHub
- URL: https://github.com/lirantal/dockly
- Owner: lirantal
- License: mit
- Created: 2016-10-22T21:47:48.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2024-09-12T17:42:43.000Z (27 days ago)
- Last Synced: 2024-09-26T00:49:34.477Z (14 days ago)
- Topics: cli, command-line-tool, console, containers, docker, hacktoberfest, nodejs
- Language: JavaScript
- Homepage: https://lirantal.github.io/dockly/
- Size: 6.18 MB
- Stars: 3,769
- Watchers: 43
- Forks: 150
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome - lirantal/dockly - Immersive terminal interface for managing docker containers and services (JavaScript)
- my-awesome-list - dockly - g dockly`) : monitor your containers and **Docker** images from your term (Uncategorized / Uncategorized)
- awesome-tuis - dockly
- awesome-cli-apps - dockly - Interactively manage containers. (Development / Docker)
- awesome-opensource-israel - dockly - Docker console UI and Dashboard for quick managing and inspecting of Containers and Images ![GitHub last commit](https://img.shields.io/github/last-commit/lirantal/dockly?style=flat-square) ![GitHub top language](https://img.shields.io/github/languages/top/lirantal/dockly?style=flat-square "GitHub top language") (Projects by main language / javascript)
- awesome-blessed - dockly
- awesome-docker - dockly - An interactive shell UI for managing Docker containers by [@lirantal](https://github.com/lirantal) (Container Operations / User Interface)
- awesome-list - dockly
- fucking-awesome-cli-apps - dockly - Interactively manage containers. (Development / Docker)
- awesome-list-docker - dockly
- awesome-docker - dockly - An interactive shell UI for managing Docker containers by [@lirantal](https://github.com/lirantal) (Container Operations / User Interface)
- jimsghstars - lirantal/dockly - Immersive terminal interface for managing docker containers and services (JavaScript)
README
Immersive terminal interface for managing docker containers, services and images[![Node Version](https://img.shields.io/badge/node-%3E=7.6.0-brightgreen.svg)]()
[![view on npm](http://img.shields.io/npm/v/dockly.svg)](https://www.npmjs.org/package/dockly)
[![view on npm](http://img.shields.io/npm/l/dockly.svg)](https://www.npmjs.org/package/dockly)
[![npm module downloads](http://img.shields.io/npm/dt/dockly.svg)](https://www.npmjs.org/package/dockly)
[![Security Responsible Disclosure](https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg)](./SECURITY.md
)
[![dockly](https://snyk.io/advisor/npm-package/dockly/badge.svg)](https://snyk.io/advisor/npm-package/dockly)Dockly has been highlighted, featured and chosen as favorite docker container management tool on:
[![Awesome Docker](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/veggiemonk/awesome-docker) [![DevOps Weekly](https://img.shields.io/badge/DevOpsWeekly-%F0%9F%95%B6-yellow.svg
)](http://devopsweekly.com)
[![terminals are sexy](https://img.shields.io/badge/TerminalsAreSexy-%F0%9F%92%BB-green.svg
)](https://github.com/k4m4/terminals-are-sexy) [![Programmer's Weekly](https://img.shields.io/badge/ProgrammersWeekly-%F0%9F%95%B6-purple.svg
)](https://mailchi.mp/programmerweekly/programmer-weekly-issue-94?e=e8c11d0390) [![Console.dev](https://img.shields.io/badge/ConsoleDotDev-%F0%9F%95%B6-blue.svg
)](https://console.dev/tools/)![dockly-demo-2](https://cloud.githubusercontent.com/assets/316371/25682867/c5212216-3027-11e7-8f36-72d38516d2af.gif)
# Install
Install the API module as a dependency in your project so you can easily use it to query Operations Orchestration REST API```javascript
npm install -g dockly
```# Usage
Just fire up dockly and it will automatically connect to your localhost docker daemon through the unix socket:
```
dockly
```## Command line options:
It's also possible to provide command line options for dockly to customize the docker connection
| Param | Type | Description |
| --- | --- | --- |
| -s or --socketPath | string | Docker socket to connect to |
| -H or --host | string | Remote docker daemon host to connect to |
| -P or --port | string | Remote docker port to connect to |
| -T or --protocol | `http` \| `https` \| `ssh` | Remote docker protocol to connect to |
| --containerFilters | string | String to apply to filter shown containers |
| -h or --help | null | Display help |
| -v or --version | null | Display version information |### `--containerFilters`
This is a string that could be used to filter the shown containers;
its format is in the x-www-form-urlencoded style and the filters you could apply are listed here: [https://docs.docker.com/engine/api/v1.37/#operation/ContainerList](https://docs.docker.com/engine/api/v1.37/#operation/ContainerList)Example: `--containerFilters="name=test&status=running"` to only show *running* container which name match *test*.
# Docker Support
## Run from docker
You can run dockly using docker:
```
docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock lirantal/dockly
```## Build
If you wish to build dockly as a docker image yourself, you can run the following:
```
$ docker build -t dockly .$ docker run -it --rm --name dockly -v /var/run/docker.sock:/var/run/docker.sock dockly
```# FAQ
1. Unsupported Node.js version
If you're getting the following error in your CLI:
```
root@neo:~# dockly
/usr/local/lib/node_modules/dockly/src/screen.js:36
constructor (utils = new Map()) {
^SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
```Or this kind of error:
```
Trace: TypeError: Object.values is not a function
at screen.toggleMode (/home/vokiel/.nvm/versions/node/v6.11.1/lib/node_modules/dockly/src/screen.js:149:35)
at Screen.screen.key (/home/vokiel/.nvm/versions/node/v6.11.1/lib/node_modules/dockly/src/screen.js:190:12)
at Screen.EventEmitter._emit
(/home/vokiel/.nvm/versions/node/v6.11.1/lib/node_modules/dockly/node_modules/blessed/lib/events.js:98:20)
```This is most likely because you're using an unsupported Node.js version.
Dockly requires Node.js v7.6 and above2. PuTTY displays garbled text
Follow the steps [in this comment](https://github.com/lirantal/dockly/issues/50#issuecomment-536190949) to enable VT100 support on the settings for the window
3. Icons not working properly
set `LANG` and `LC_ALL` to c.UTF-8 like so
```bash
export LANG=C.UTF-8
export LC_ALL=C.UTF-8
```
for more info please see [this issue](https://github.com/yaronn/blessed-contrib/issues/111)## Alternatives
See [Awesome Docker list](https://github.com/veggiemonk/awesome-docker/blob/master/README.md#terminal) for similar tools to work with Docker.
# In the news
- Admin Magazine article: [Visualizing containers with clarity
](https://www.admin-magazine.com/Articles/Visualizing-containers-with-clarity)
- [A learnk8s tweet](https://twitter.com/learnk8s/status/1075677503782563840)
- [Dockly – Manage Docker Containers From Terminal](https://ostechnix.com/dockly-manage-docker-containers-from-terminal/)
- [Clever cloud CEO, Quentin Adam, tweeting about dockly](https://twitter.com/waxzce/status/1123886351924043777)# Author
Liran Tal
![Screenshot 2024-09-12 at 20 08 07](https://github.com/user-attachments/assets/970a97fd-16bd-4b3c-b535-ae7445b52d4c)
Learn Node.js Secure Coding techniques and best practices from Liran Tal