Dockly: Docker containers from the terminal management

A few days ago, we published a guide that covers started with Docker almost all the details you need to know. In this guide, we show you in detail how to create and manage Docker containers. There are some unofficial tools can be used to manage Docker containers. If you read our previous article, you may see two Web-based tools, Portainer and PiCluster . They have made Docker management tasks easier and simple Web browser. Today, I met another management tool called Dockly Docker's.

Different tools above, Dockly the TUI is a (text interface) program for Unix-like systems Docker containers from the terminal management and service. It is written using NodeJS free and open source tools. In this brief guide, we will learn how to install Dockly and how to manage Docker containers from the command line.

Installation Dockly

NodeJS sure you have installed on Linux. If you have not installed, please refer to the following guidelines.

After installation NodeJS, run the following command to install Dockly:

# npm install -g dockly
复制代码

Used in the terminal management Docker containers Dockly

Use Dockly manage Docker containers is very simple! You have to do is open a terminal and run the following command:

# dockly
复制代码

Dockly will automatically connect to you daemon by native docker unix socket, and displays a list of running the container, as shown in the terminal.

Use Dockly manage Docker containers

As you can see in the screenshot above, Dockly at the top shows the following information to run the container:

  • Container ID,
  • Vessel name,
  • Docker mirror,
  • command,
  • Operation state of the container,
  • status.

In the upper right corner, you will see the container CPU and memory utilization. The up / down arrow keys to move between the containers.

At the bottom, there are a small number of keyboard shortcuts to perform various administrative tasks Docker. The following is a list of currently available keyboard shortcuts:

  • = - Refresh Dockly interface,
  • / - Search the container list view,
  • i - Displays information about the currently selected container or services,
  • 回车 - Displays the current log or container services,
  • v - between the container and the view switching services,
  • l- start on the selected container /bin/bashsession,
  • r - restart the selected container,
  • s - Stop the selected container,
  • h - Displays the help window,
  • q - Exit Dockly.

View information containers

Use the up / down arrows to select a container, then press ito display information for the selected container.

View information containers

Restart container

If at any time you want to restart the container, simply select it and press rto restart.

Restart Docker container

Stop / Delete container and mirror

If the vessel is no longer needed, we can immediately stop and / or delete one or all containers. To do this, press mto open the menu.

Stop, delete Docker containers and mirrors

Here, you can do the following.

  • Stop all Docker containers,
  • Delete the selected container,
  • Delete all containers,
  • Delete all Docker mirroring.

Display Dockly help section

If you have any questions, simply press hto open the Help section.

Dockly Help

For more details, please refer to the official GitHub page was last given.

That's it. Hopefully this article useful. If you have been using Docker containers, try Dockly, to see if it helps.

Suggested Reading:

Resources:


via: www.ostechnix.com/dockly-mana…

Author: SK topics: lujun9972 Translator: geekpi proofread: wxy

This article from the LCTT original compiler, Linux China is proud

Guess you like

Origin blog.csdn.net/weixin_33724046/article/details/91398067