mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
36 lines
3.4 KiB
Markdown
36 lines
3.4 KiB
Markdown
# Podman-compose plugin
|
|
|
|
This plugin provides aliases for [podman-compose](https://github.com/containers/podman-compose), a tool for running podman containers using compose files.
|
|
It is inspired by the `docker-compose` plugin and includes similar aliases for a familiar workflow.
|
|
|
|
To use it, add `podman-compose` to the plugins array of your zshrc file:
|
|
|
|
```zsh
|
|
plugins=(... podman-compose)
|
|
```
|
|
|
|
## Aliases
|
|
|
|
| Alias | Command | Description |
|
|
|------------|----------------------------------|----------------------------------------------------------------------------------|
|
|
| pco | `podman-compose` | Podman-compose main command |
|
|
| pcb | `podman-compose build` | Build containers |
|
|
| pce | `podman-compose exec` | Execute command inside a container |
|
|
| pcps | `podman-compose ps` | List containers |
|
|
| pcrestart | `podman-compose restart` | Restart container |
|
|
| pcrm | `podman-compose rm` | Remove container |
|
|
| pcr | `podman-compose run` | Run a command in container |
|
|
| pcstop | `podman-compose stop` | Stop a container |
|
|
| pcup | `podman-compose up` | Build, (re)create, start, and attach to containers for a service |
|
|
| pcupb | `podman-compose up --build` | Same as `pcup`, but build images before starting containers |
|
|
| pcupd | `podman-compose up -d` | Same as `pcup`, but starts as daemon |
|
|
| pcupdb | `podman-compose up -d --build` | Same as `pcup`, but build images before starting containers and starts as daemon |
|
|
| pcdn | `podman-compose down` | Stop and remove containers |
|
|
| pcl | `podman-compose logs` | Show logs of container |
|
|
| pclf | `podman-compose logs -f` | Show logs and follow output |
|
|
| pclF | `podman-compose logs -f --tail 0`| Just follow recent logs |
|
|
| pcpull | `podman-compose pull` | Pull image of a service |
|
|
| pcstart | `podman-compose start` | Start a container |
|
|
| pck | `podman-compose kill` | Kills containers |
|
|
| pcpause | `podman-compose pause` | Pause containers |
|
|
| pcunpause | `podman-compose unpause` | Unpause containers |
|