lazydocker
lazydocker copied to clipboard
can't use pipe in serviceLogs and viewServiceLogs commands
Describe the bug
Trying to use pipe in in config file for serviceLogs and viewServiceLogs but get an error:
No such service: |
To Reproduce Steps to reproduce the behavior:
- Run lazydocker in a docker-compose directory
- Go to config file
- Set viewServiceLogs to:
{{ .DockerCompose }} logs --no-color {{ .Service.Name }} | sed -u 's/^[^|]*[^ ]* //' | jq -RM '. as $raw | try fromjson catch $raw' - Save and exit (restart lazydocker in case config doesn't update)
- Press m on a service
- See error
Expected behaviour For it to pipe through the first part to the next part like in bash. viewContainerLogs works with pipe but for serviceLogs it doesn't
Screenshots

Desktop (please complete the following information):
- OS: Linux
- Lazydocker Version v0.12
You could run the command in a shell like sh -c "my command". Thoughts?