mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-25 08:31:03 +00:00
include compose & service in doc
This commit is contained in:
parent
1bdc6a044d
commit
64922844d3
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue