include compose & service in doc

This commit is contained in:
John Chavez 2023-01-27 10:35:22 -08:00
parent 1bdc6a044d
commit 64922844d3

View file

@ -104,7 +104,10 @@ customCommands:
serviceNames: []
```
For a full list of template variables that are available (such as `{{ .Container.ID }}`), see the fields of our [Container struct](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Container). For example, to write a command that uses a container's image ID, you can use `{{ .Container.Container.ImageID }}`.
You may use the following go templates (such as `{{ .Container.ID }}` above) in your commands:
- `{{ .DockerCompose }}`: the docker compose command (default: `docker-compose`)
- [`{{ .Container }}`](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Container) and its fields. For example: `{{ .Container.Container.ImageID }}`
- [`{{ .Service }}`](https://pkg.go.dev/github.com/jesseduffield/lazydocker@v0.20.0/pkg/commands#Service) and its fields. For example: `{{ .Service.Name }}`
## Replacements