CLI tool for docker images, containers, logs and more.
Project description
👋🏼 Introduction
Pocker is a TUI tool to help with docker related tasks. For example,
- View containers/images.
- Manage status of containers.
- See logs, attributes, environment variables and container statistics.
- Filter logs based on keywords.
- Start shell inside a container.
The tool is heavily based on docker-py and textual.
A big thanks goes over to the creator and contributors of textual as it makes for a very sleek and easy interface.
🤏🏼 Prerequisite
[!NOTE] Pipx must be installed.
Python version >= 3.10.9
📦 Installation
Latest version
pipx install git+https://github.com/pommee/Pocker
Install from local repository
git clone https://github.com/pommee/Pocker.git
cd Pocker
pipx install .
🚦 Usage
pocker # Start pocker
pocker update # Fetch and install latest version
Keybinds can be seen in the footer when started or by pressing ?
to display help modal.
🔧 Configuration
Upon the first startup, a configuration file will be generated and stored at $HOME/.config/pocker/config.yaml
.
Key | Default | Info |
---|---|---|
log_tail | 2000 | At startup, Pocker will fetch log_tail amount of container logs.Not recommended to exceed ~3000 as startup will slow down. |
max_log_lines | 2000 | The displayed container logs are shown sequentially, with the oldest log being removed as a new one appears. |
show_all_containers | false | Show running and exited containers. |
start_fullscreen | false | Display container logs in fullscreen mode at startup. |
start_scroll | true | Automatically scrolls when new logs are fetched. |
start_wrap | false | When enabled, logs will wrap to fit the content window. |
Keymap [default]
Key | Action | Description |
---|---|---|
q |
Quit | Exits the application. |
l |
Logs | Opens the logs view to display log entries. |
/ |
Search | Search logs. |
a |
Attributes | Displays the attributes panel, showing various item attributes. |
e |
Environment | Opens the environment settings view. |
d |
Statistics | Shows statistical information related to the container. |
v |
Shell | Creates a shell for the current container. |
f |
Fullscreen | Toggles fullscreen mode for the logs view. |
w |
Wrap Logs | Toggles log wrapping in the logs view. |
s |
Toggle Scroll | Toggles scrolling mode for the current view. |
This table helps you understand the functionalities assigned to each key, making navigation and operation more efficient.
Errors
Errors will be displayed whenever encountered.
Example of faulty keybind for
Shell
; in this case the key does not exist in the config.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pocker_tui-1.11.4.tar.gz
.
File metadata
- Download URL: pocker_tui-1.11.4.tar.gz
- Upload date:
- Size: 18.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f38c661247b2e977c1c09a1cc6749acdc98207265d3dd3f5e4cba00fd8c9da56 |
|
MD5 | 8f34dd8e1610addda9ac230b1203e57c |
|
BLAKE2b-256 | 16c3314dbe74447207b1160c8135acca1eeb3d6895602a5d10136b2c77ec026d |
File details
Details for the file pocker_tui-1.11.4-py3-none-any.whl
.
File metadata
- Download URL: pocker_tui-1.11.4-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7feee28beaa9f5d651e21e6a13affe09f1e2dd8ca4f24358a7110d6c47ed12c |
|
MD5 | 3f35d8225ba48ac4aef2e00c58ea1ce9 |
|
BLAKE2b-256 | 15225571f908c31d809767f02262bfde7d750e9107729dad694ffae591ef547c |