1.4 KiB
1.4 KiB
Container Management Tasks Docker or Podman
Purpose
To work with Podman, simply make docker an alias to the podman command.
Configuration
- Config file:
$HOME/.config/pm-task.conf- Config key
workspacestores Docker/Podman projects workspace directory - Prompts user for input if not set, creates config file if it doesn't exist
- Config key
Tasks
Tasks are defined in the first argument.
(none): Shows a numbered list menu of all subdirectories under the workspace directory, navigates to the selected directory, and runsls -lahrestart: Runsdocker compose down,sleep 1, anddocker compose upcommandsstart/up: Runsdocker compose upcommandstop/down: Runsdocker compose downcommandps: Runswatch docker psto monitor running containersstats: Runsdocker statsto monitor container resource usagelogs/log: Runsdocker logs -f <container_name>to follow container logssh/bash/shell: Runsdocker exec -it <container_name> bashto access container shellreload: Reloads the nginx service if the container is runningbuild/rebuild: Builds containers withdocker compose build, optionally restarts containers, and reloads nginxupgrade: Pulls latest images and upgrades containers withdocker compose up -d --remove-orphans --force-recreate--help: Displays available tasks and usage information