#
dcps
A pretty replacement for docker compose ps that displays Docker Compose services in a nicely formatted table.
#
Usage
The tool can be executed in three different ways:
# Full command
enderclitools dcps [OPTIONS]
# Short alias
ect dcps [OPTIONS]
# Direct alias
dcps [OPTIONS]
#
Options
#
Container Filtering
-a, --all- Show all containers (default shows just running)-f, --filter <FILTER>- Filter output based on conditions provided--no-orphans- Exclude orphaned services (not declared by project)--status <STATUS>- Filter services by status:paused- Show only paused containersrestarting- Show only restarting containersremoving- Show only containers being removedrunning- Show only running containersdead- Show only dead containerscreated- Show only created containersexited- Show only exited containers
#
Output Formatting
--no-trunc- Don't truncate output-q, --quiet- Only display container IDs--services- Display services
#
Table Styling
--table-preset <TABLE_PRESET>- Predefined table styles:ascii-full- Full ASCII bordersascii-full-condensed- Condensed ASCII bordersascii-no-borders- No bordersascii-borders-only- Only outer bordersascii-borders-only-condensed- Condensed outer bordersascii-horizontal-only- Only horizontal linesascii-markdown- Markdown table styleutf8-full- Full UTF8 bordersutf8-full-condensed- Condensed UTF8 bordersutf8-no-borders- No UTF8 bordersutf8-borders-only- Only UTF8 outer bordersutf8-horizontal-only- Only UTF8 horizontal linesnothing- No formatting
--table-modifier <TABLE_MODIFIER>- Additional table modifiers:utf8-round-corners- Rounded cornersutf8-solid-inner-borders- Solid inner borders
#
Column Configuration
--headers <HEADERS>- Determines which columns are displayed:id- Container IDservice- Service namenames- Container namesimage- Docker imagestatus- Container statusports- Port mappingscommand- Executed commandcreated-at- Creation timestampcreated- Creation time (relative)size- Container sizelabels- Container labelsmounts- Volume mounts
--add-headers <ADD_HEADERS>- Adds additional columns to the default columns (same options as--headers)
#
Help
-h, --help- Print help
#
Examples
# Basic usage - show running compose services
PS C:\Users\endki\laravel_example> dcps
╭───────────┬───────────────────────────┬───────────────────┬─────────────────────────────────────╮
│ Service ┆ Image ┆ Status ┆ Ports │
╞═══════════╪═══════════════════════════╪═══════════════════╪═════════════════════════════════════╡
│ db ┆ postgres:latest ┆ Up About a minute ┆ 5432/tcp │
├╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ queue ┆ laravel_example-queue ┆ Up About a minute ┆ 9000/tcp │
├╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ redis ┆ redis:latest ┆ Up About a minute ┆ 6379/tcp │
├╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ scheduler ┆ laravel_example-scheduler ┆ Up About a minute ┆ 9000/tcp │
├╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┼╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌┤
│ web ┆ laravel_example-web ┆ Up About a minute ┆ 0.0.0.0:80->80/tcp, [::]:80->80/tcp │
╰───────────┴───────────────────────────┴───────────────────┴─────────────────────────────────────╯
# Show all containers including stopped ones
dcps -a
# Show only running services
dcps --status running
# Show only service names
dcps --services
# Filter by specific status
dcps --status exited
# Show specific columns
dcps --headers service,names,status,ports
# Exclude orphaned containers
dcps --no-orphans
