-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build promtail on linux and windows, discard artifacts
- Loading branch information
Showing
2 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ba54f51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi,
a question, does this WA solve this problem?
PS C:\Users\enriq\docker-kike\LOKI\opt\loki> docker-compose -f loki-stack.yml up
ERROR: .FileNotFoundError: [Errno 2] No such file or directory: '.\loki-stack.yml'
PS C:\Users\enriq\docker-kike\LOKI\opt\loki>
PS C:\Users\enriq\docker-kike\LOKI\opt\loki> docker-compose -f loki-compose.yml up
Creating network "loki_loki" with the default driver
Creating loki_grafana_1 ...
Creating loki_loki_1 ...
Creating loki_grafana_1 ... done Creating loki_loki_1 ... done ERROR: for loki_promtail_1 Cannot create container for service promtail: invalid volume specification: '/var/log:/var/log:rw'
ERROR: for promtail Cannot create container for service promtail: invalid volume specification: '/var/log:/var/log:rw'
ERROR: Encountered errors while bringing up the project.
BR
ba54f51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No your problem is just that the docker-compose file is for mac and linux, you need to modify the mount path and use a windows style path.
Something like:
replace
//c/path/to/logs
with a path where there is log files ending with .log.ba54f51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi cyriltovena,
thanks for response.
my folder in windows is " //c/users/enriq/docker-kike/logs-cmm ", but still can't create the volume
PS C:\Users\enriq\docker-kike> docker-compose -f grafana-loki-promtail.yml up
Starting docker-kike_grafana_1 ...
docker-kike_loki_1 is up-to-date
Creating docker-kike_promtail_1 ... error
Starting docker-kike_grafana_1 ... done ar/log:rw'
ERROR: for promtail Cannot create container for service promtail: invalid volume specification: '//c/users/enriq/docker-kike/logs-cmm:/var/log:rw'
ERROR: Encountered errors while bringing up the project.
BR
ba54f51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.