Skip to content

Commit c4ffb44

Browse files
authored
fix: chown -R runner:docker 001 folder (#3441)
fix workflow category: fixbuild ticket: none
1 parent 443c463 commit c4ffb44

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

testutil/compose/auto.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,13 @@ func fixPerms(ctx context.Context, dir string) error {
185185

186186
// execDown executes `docker compose down`.
187187
func execDown(ctx context.Context, dir string) error {
188+
log.Info(ctx, "Finding and fixing permissions in /tmp")
189+
chownCmd := exec.CommandContext(ctx, "sudo", "find", "/tmp/", "-name", "001", "-exec", "chown", "-R", "runner:docker", "{}", ";")
190+
output, _ := chownCmd.CombinedOutput()
191+
log.Info(ctx, "Chown output",
192+
z.Str("output", string(output)),
193+
)
194+
188195
log.Info(ctx, "Executing docker compose down")
189196

190197
cmd := exec.CommandContext(ctx, "docker", "compose", "down",

0 commit comments

Comments
 (0)