This Bash script provides a convenient way to list all Docker containers on your system in a tree format. It retrieves information about all containers, including their IDs, images, and names, and displays it in a visually appealing manner.
To run this script, ensure you have the following installed:
- Bash: The script is written in Bash and requires a compatible shell to run.
- Docker: Docker must be installed and running on your machine. You can download it from Docker's official website.
-
Clone this repository to your local machine (if applicable):
git clone https://github.com/Zylk-dev/todo-list_bash.git
-
Navigate to the directory containing the script:
cd todo-list_bash/docker-listview_bash
-
Make the script executable:
chmod +x docker_list.sh
To use the Docker list view script, follow these steps:
- Open your terminal.
- Navigate to the directory containing the script.
- Run the script:
./docker_list.sh
- The script checks if Docker is installed and lists all available Docker containers in a tree format.
- If no containers are found, it will notify you accordingly.