Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sergkondr/docker-tree
A Docker cli plugin that implements the tree command for an image
https://github.com/sergkondr/docker-tree
containers docker docker-cli docker-cli-commands docker-cli-plugin docker-plugin filesystem golnag tree
Last synced: 17 days ago
JSON representation
A Docker cli plugin that implements the tree command for an image
- Host: GitHub
- URL: https://github.com/sergkondr/docker-tree
- Owner: sergkondr
- License: mit
- Created: 2024-07-15T16:46:43.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T15:15:40.000Z (4 months ago)
- Last Synced: 2024-10-25T22:32:34.683Z (25 days ago)
- Topics: containers, docker, docker-cli, docker-cli-commands, docker-cli-plugin, docker-plugin, filesystem, golnag, tree
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 15
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-tree
[![License: MIT](https://img.shields.io/badge/License-MIT%202.0-blue.svg)](https://github.com/sergkondr/docker-tree/blob/main/LICENSE)
[![GitHub release](https://img.shields.io/github/release/sergkondr/docker-tree.svg)](https://github.com/sergkondr/docker-tree/releases/latest)
[![Go Report Card](https://goreportcard.com/badge/github.com/sergkondr/docker-tree)](https://goreportcard.com/report/github.com/sergkondr/docker-tree)
[![Go](https://github.com/sergkondr/docker-tree/actions/workflows/go.yml/badge.svg)](https://github.com/sergkondr/docker-tree/actions/workflows/go.yml)
[![CodeQL](https://github.com/sergkondr/docker-tree/actions/workflows/codeql.yml/badge.svg)](https://github.com/sergkondr/docker-tree/actions/workflows/codeql.yml)This command shows the directory tree of a Docker image, like the 'tree' command.
Provide the image name and an optional tag or digest to view the file structure inside the image.
You can also specify a directory to see the file tree relative to this directory.This is not a replacement for the amazing [Dive](https://github.com/wagoodman/dive) utility, but it works as a Docker
plugin, so you might find it simpler and more convenient
Think of this app mainly as an attempt to understand how Docker images work and how to create Docker plugins. However,
it does work, and I hope you find it useful.### Install
```
mv ./docker-tree ~/.docker/cli-plugins/docker-tree
```### Usage
```shell
➜ docker tree alpine:3.20 /etc/ssl
processing image: alpine:3.20
ssl/
├── cert.pem
├── certs/
│ └── ca-certificates.crt
├── ct_log_list.cnf
├── ct_log_list.cnf.dist
├── openssl.cnf
├── openssl.cnf.dist
└── private/
```