Replies: 6 comments 4 replies
-
Can you explain what's happening here? I am not following. Dozzle doesn't have a user. It's based on scratch image. So it doesn't actually do anything when you set user. Maybe you can be more specific by sending a PR. |
Beta Was this translation helpful? Give feedback.
-
I just saw your update:
That is using the OS temp dir through Go. What is it supposed to do instead? |
Beta Was this translation helpful? Give feedback.
-
I am not sure what to do with this issue. Won't have time to look at it. If it's an easy fix, then send a PR please. |
Beta Was this translation helpful? Give feedback.
-
The idea is to possibly follow Linux FHS (Filesystem Hierarchy Standard) and allow docker image to be read-only by putting generated files into places that can be mapped to TMPFS or alike. It seems that today temporary file, or socket?, is created somewhere but not in a temp folder; making the agent crash if set to read-only or under a specific user & group. (non root user). |
Beta Was this translation helpful? Give feedback.
-
I think I am going to revisit this. It seems to actually work with fmt.Printf("Current user id: %d and group id: %d\n", os.Getuid(), os.Getgid()) ❯ docker run --user 1000 amir20/test
Current user id: 1000 and group id: 0 So it seems as if |
Beta Was this translation helpful? Give feedback.
-
This is fixed now in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the feature you would like to see
It would be nice to follow Linux FHS and set temporary files under either
/tmp/dozzle/
or/run/dozzle/
or/var/run/dozzle/
.Example of compose ansible template:
Ends into this error:
Describe how you would like to see this feature implemented
Update
dozzle/internal/support/cli/agent_command.go
Line 40 in 9c2e037
Describe any alternatives you've considered
No response
Beta Was this translation helpful? Give feedback.
All reactions