🚀 Container Package Checking Utility
Make sure you have the necessary dependencies and permissions to install the package.
conpack is a command-line tool to check for the presence of a specified package in running containers using various container runtimes like Docker, Podman, and Finch.
Currently figuring out how to distribute a binary, but you can follow these steps after cloning the repo
cd conpack
go build .
cp conpack /usr/local/binconpack [-p|--package <package_name>] [-r|--runtime <runtime>]-p, --package <package_name>: Specify the package name to search for.-r, --runtime <runtime>: Specify the container runtime to use (e.g., docker, podman, finch). Default is docker.--help: Show this help message.
conpack -p curl
conpack -p curl -r podman- Initialization: The tool initializes by parsing command-line flags for the package name and runtime.
- Container Check: It lists all running containers using the specified runtime.
- Package Search: For each container, it checks if the specified package is installed by executing a command inside the container.
- Output: Displays the containers where the package is found, along with their names and IDs.
- Supports multiple container runtimes.
- Provides a colorful and animated progress indicator while checking containers.
- Displays results in a clear and organized manner.
This project is licensed under the MIT License.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
For any questions or suggestions, feel free to reach out.
Happy container package checking! 🎉