1.2 KiB
1.2 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: Runsdocker compose upcommandstop: 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 shellbuild/rebuild: Builds containers withdocker compose build, optionally restarts containers, and reloads nginx--help: Displays available tasks and usage information