Skip to main content

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.

"Buy Me A Coffee"

🤏🏼 Prerequisite

[!NOTE] Pipx must be installed.
Python version 3.10.9 or newer.

📦 Installation

Pocker is hosted at PyPi (see here).

pipx install pocker-tui           # Latest version
pipx install pocker-tui==version  # Specific version

Install from GitHub repository

PyPi will mostly contain newest version, but it is also possible to run install from this repository.

pipx install git+https://github.com/pommee/Pocker

🚦 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.
TAB Cycle widgets Used to cycle widgets. Newly focused widget will have it's borders alter colors.
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.

keybind-error

Example of faulty keybind for Shell; in this case the key does not exist in the config.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pocker_tui-1.12.3.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

pocker_tui-1.12.3-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file pocker_tui-1.12.3.tar.gz.

File metadata

  • Download URL: pocker_tui-1.12.3.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pocker_tui-1.12.3.tar.gz
Algorithm Hash digest
SHA256 fe067ac32e3d33a699f4315509396d79f6cadeba7f64448821017b2c6a39fbf6
MD5 c3b1ec1e184e4c3ccb60c9f9a6c7d3cd
BLAKE2b-256 18f7f556535e59f2828b91e6f6ce0cf4ed58cf2529596711d980d6a78e9e91cd

See more details on using hashes here.

File details

Details for the file pocker_tui-1.12.3-py3-none-any.whl.

File metadata

  • Download URL: pocker_tui-1.12.3-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pocker_tui-1.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c729c99fb80e396e2dedcbf77b1f989499a286a6dcb12cf0fdb033f8cbdd2c1
MD5 fbd2e38e90f381d9ca2af5480e515b78
BLAKE2b-256 0bc6560771f2cbd9fa786717221b1c0266b26610882dfc82602500a9ae2c249f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page