Skip to content

DexLuthor/docker-container-manager

Repository files navigation

Alfred Workflow for Managing Docker Containers

Buy Me A Coffee

Features

  • (Re)start, stop, or delete containers
  • Connect to container's shell
  • View logs
  • View local Docker images
  • Browse Docker Hub
  • More features coming soon...

How to use

  • Type dkr to list available subcommands:
    • containers — Shows running containers
      • +: Copy container ID to clipboard
      • +: Open terminal and connect to the container shell
      • : View available container actions container_actions.png
    • monitoring — Displays current resource usage of running containers
      • : To get to container's actions monitoring.png
    • dockerhub <image_name> — Searches Docker Hub and lists available images
      • : Open image page in browser the image page in your browser dockerhub.png
    • images — Lists local Docker images with basic info.
      • : to open the image page in your browser images.png
  • You can also use configurable shortcut aliases:
    • contsdkr containers
    • mondkr monitoring
    • dhdkr dockerhub
    • imagesdkr images

Container Status icons

  • 🟢: Running and Healthy
  • 🟢🤒: Running, but Unhealthy
  • 🟡: Paused
  • 🔄: Restarting
  • 🔴: Not running - Exited / dead / not started
  • ⚪️: Unknown

container_statuses.png

Prerequisites

  • Docker — Required for container management
  • jq — Command-line JSON processor used to parse Docker output

Configuration

If you need to reconfigure the workflow, you can do so by opening the workflow, clicking Configure workflow and modifying available variables: configuration.png

Troubleshooting

If you encounter any issues, you see debugging logs if follow the instructions below: workflow-debugging.png

Sponsor this project

Languages