Skip to content

Commit 49ea477

Browse files
fix(cdk): Document test results with privileged and userns flags
Co-Authored-By: Aaron <AJ> Steers <[email protected]>
1 parent dab5575 commit 49ea477

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

devlog/2025-03-sandboxing-2.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,43 @@ The solution addresses these issues by:
5959

6060
## Testing Results
6161

62-
The implementation was tested by building and running the Docker image:
62+
The implementation was tested by building and running the Docker image with various configurations:
6363

64+
### Basic Run
6465
```bash
6566
cd docker/sandbox-poc
6667
docker build -f Dockerfile.gvisor -t airbyte/source-declarative-manifest-gvisor .
6768
docker run --rm airbyte/source-declarative-manifest-gvisor spec
6869
```
6970

70-
The image successfully runs the `spec` command without permission errors.
71+
The error changed from the original permission denied error to:
72+
```
73+
running container: creating container: cannot create gofer process: unable to run a rootless container without userns
74+
```
75+
76+
The container successfully falls back to direct execution and completes the spec command.
77+
78+
### Privileged Mode
79+
```bash
80+
docker run --rm --privileged airbyte/source-declarative-manifest-gvisor spec
81+
```
82+
83+
Even with privileged mode, the same error occurs:
84+
```
85+
running container: creating container: cannot create gofer process: unable to run a rootless container without userns
86+
```
87+
88+
### User Namespace Support
89+
```bash
90+
docker run --rm --userns=host airbyte/source-declarative-manifest-gvisor spec
91+
```
92+
93+
The user namespace flag also results in the same error:
94+
```
95+
running container: creating container: cannot create gofer process: unable to run a rootless container without userns
96+
```
97+
98+
These tests indicate that while we've resolved the directory permission issues, running gVisor within a container requires additional Docker runtime configuration beyond what can be achieved from within the container itself.
7199

72100
## Considerations for Future Work
73101

0 commit comments

Comments
 (0)