10 个版本

0.2.1 2024年1月2日
0.2.0 2023年8月4日
0.1.7 2023年3月31日
0.1.6 2023年2月15日
0.1.3 2023年1月18日

#1337命令行实用工具

GPL-3.0-only

220KB
6K SLoC

haddock

haddock 旨在成为 Docker Compose 的直接替代品,支持 Podman 4.3.0 及以上版本。除了 buildpullpush 命令外,实现了所有 Docker Compose 命令。

Docker Compose for Podman

Usage: haddock [OPTIONS] <COMMAND>

Commands:
  convert  Converts the Compose file to platform's canonical format
  cp       Copy files/folders between a service container and the local filesystem
  create   Creates containers for a service
  down     Stop and remove containers, networks
  events   Receive real time events from containers
  exec     Execute a command in a running container
  help     Print this message or the help of the given subcommand(s)
  kill     Force stop service containers
  logs     View output from containers
  ls       List running Compose projects
  pause    Pause services
  port     Print the public port for a port binding
  ps       List containers
  restart  Restart service containers
  rm       Removes stopped service containers
  run      Run a one-off command on a service
  start    Start services
  stop     Stop services
  top      Display the running processes
  unpause  Unpause services
  up       Create and start containers
  version  Print version

Options:
      --dry-run                                Only show the Podman commands that will be executed
      --env-file <ENV_FILE>                    Specify an alternate environment file
  -f, --file <FILE>                            Compose configuration files
  -h, --help                                   Print help
  -p, --project-name <PROJECT_NAME>            Project name
      --profile <PROFILE>                      Specify a profile to enable
      --project-directory <PROJECT_DIRECTORY>  Specify an alternate working directory
  -V, --version                                Print version

安装

使用 cargo 进行安装

cargo install haddock

依赖关系

~17–31MB
~414K SLoC