Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions testutil/compose/auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,13 @@ func fixPerms(ctx context.Context, dir string) error {

// execDown executes `docker compose down`.
func execDown(ctx context.Context, dir string) error {
log.Info(ctx, "Finding and fixing permissions in /tmp")
chownCmd := exec.CommandContext(ctx, "sudo", "find", "/tmp/", "-name", "001", "-exec", "chown", "-R", "runner:docker", "{}", ";")
output, _ := chownCmd.CombinedOutput()
log.Info(ctx, "Chown output",
z.Str("output", string(output)),
)

log.Info(ctx, "Executing docker compose down")

cmd := exec.CommandContext(ctx, "docker", "compose", "down",
Expand Down
Loading