Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions src/docker-manager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ describe('docker-manager', () => {
expect(volumes).toContain('/etc/ca-certificates:/host/etc/ca-certificates:ro');
expect(volumes).toContain('/etc/alternatives:/host/etc/alternatives:ro');
expect(volumes).toContain('/etc/ld.so.cache:/host/etc/ld.so.cache:ro');
expect(volumes).toContain('/etc/hosts:/host/etc/hosts:ro');

// Should still include essential mounts
expect(volumes).toContain('/tmp:/tmp:rw');
Expand Down
1 change: 1 addition & 0 deletions src/docker-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ export function generateDockerCompose(
'/etc/passwd:/host/etc/passwd:ro', // User database (needed for getent/user lookup)
'/etc/group:/host/etc/group:ro', // Group database (needed for getent/group lookup)
'/etc/nsswitch.conf:/host/etc/nsswitch.conf:ro', // Name service switch config
'/etc/hosts:/host/etc/hosts:ro', // Host name resolution (localhost, etc.)
);

// SECURITY: Hide Docker socket to prevent firewall bypass via 'docker run'
Expand Down
Loading