Skip to content

Commit c2a3c05

Browse files
committed
fix: make directories world writable
1 parent e546140 commit c2a3c05

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/components/c2d/compute_engine_docker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,6 +2757,11 @@ export class C2DEngineDocker extends C2DEngine {
27572757
map: (header: any) => {
27582758
header.uid = C2D_CONTAINER_UID
27592759
header.gid = C2D_CONTAINER_GID
2760+
// Docker's putArchive applies chmod but not chown — set directories
2761+
// world-writable so the container user (uid 1000) can write to them
2762+
if (header.type === 'Directory') {
2763+
header.mode = 0o777
2764+
}
27602765
return header
27612766
}
27622767
} as any,

0 commit comments

Comments
 (0)