@@ -76,35 +76,30 @@ For GPU-backed Docker sandboxes, configure Docker CDI before starting the gatewa
7676
7777Docker driver config accepts user-supplied ` volume ` and ` tmpfs ` mounts. It also
7878accepts ` bind ` mounts when ` [openshell.drivers.docker] ` sets
79- ` enable_bind_mounts = true ` in ` gateway.toml ` . Host bind mounts expose gateway
80- host paths to sandbox requests, so they are disabled by default. Host bind
81- mounts are unsafe: they put gateway-host filesystem state directly inside the
82- sandbox and can negate OpenShell controls such as workspace isolation and
83- filesystem policy. Enable them only for trusted local workflows where you
84- understand and accept that loss of isolation. Image mounts are not accepted in
79+ ` enable_bind_mounts = true ` in ` gateway.toml ` . Image mounts are not accepted in
8580Docker sandbox driver config.
8681Docker's [ storage documentation] ( https://docs.docker.com/engine/storage/ )
8782documents container storage mounts as volumes, bind mounts, tmpfs mounts, and
8883named pipes.
8984
90- Use a ` volume ` mount for existing Docker named volumes. This includes NFS
91- volumes created with Docker's local volume driver:
85+ Use a ` volume ` mount for existing Docker named volumes:
9286
9387``` shell
94- docker volume create \
95- --driver local \
96- --opt type=nfs \
97- --opt o=addr=10.0.0.10,rw,nfsvers=4 \
98- --opt device=:/exports/work \
99- work-nfs
88+ docker volume create openshell-work
10089
10190openshell sandbox create \
102- --driver-config-json ' {"docker":{"mounts":[{"type":"volume","source":"work-nfs ","target":"/sandbox/work","read_only":false}]}}' \
91+ --driver-config-json ' {"docker":{"mounts":[{"type":"volume","source":"openshell-work ","target":"/sandbox/work","read_only":false}]}}' \
10392 -- claude
10493```
10594
106- Use a ` bind ` mount only after enabling it in the Docker driver table. Treat
107- this setting as an unsafe operator override:
95+ <Warning >
96+ Bind mounts share gateway-host filesystem resources with the sandbox. They may
97+ be considered insecure because they can negate OpenShell controls such as
98+ workspace isolation and filesystem policy. Use them only when you understand and
99+ accept that loss of isolation.
100+ </Warning >
101+
102+ Use a ` bind ` mount only after enabling it in the Docker driver table:
108103
109104``` toml
110105[openshell .drivers .docker ]
@@ -145,39 +140,26 @@ On macOS with `podman machine`, the driver uses gvproxy's host-loopback IP, `192
145140
146141Podman driver config accepts user-supplied ` volume ` , ` tmpfs ` , and ` image `
147142mounts. It also accepts ` bind ` mounts when ` [openshell.drivers.podman] ` sets
148- ` enable_bind_mounts = true ` in ` gateway.toml ` . Host bind mounts expose gateway
149- host paths to sandbox requests, so they are disabled by default. Host bind
150- mounts are unsafe: they put gateway-host filesystem state directly inside the
151- sandbox and can negate OpenShell controls such as workspace isolation and
152- filesystem policy. Enable them only for trusted local workflows where you
153- understand and accept that loss of isolation.
143+ ` enable_bind_mounts = true ` in ` gateway.toml ` .
154144
155- Use a ` volume ` mount for existing Podman named volumes. This includes NFS
156- volumes created with Podman's local volume driver:
145+ Use a ` volume ` mount for existing Podman named volumes:
157146
158147``` shell
159- podman volume create \
160- --opt type=nfs \
161- --opt o=addr=10.0.0.10,rw,nfsvers=4 \
162- --opt device=:/exports/work \
163- work-nfs
148+ podman volume create openshell-work
164149
165150openshell sandbox create \
166- --driver-config-json ' {"podman":{"mounts":[{"type":"volume","source":"work-nfs ","target":"/sandbox/work","read_only":false}]}}' \
151+ --driver-config-json ' {"podman":{"mounts":[{"type":"volume","source":"openshell-work ","target":"/sandbox/work","read_only":false}]}}' \
167152 -- claude
168153```
169154
170- Use an ` image ` mount to mount an OCI image filesystem through Podman's
171- image-volume API:
172-
173- ``` shell
174- openshell sandbox create \
175- --driver-config-json ' {"podman":{"mounts":[{"type":"image","source":"ghcr.io/acme/tools:latest","target":"/opt/tools"}]}}' \
176- -- claude
177- ```
155+ <Warning >
156+ Bind mounts share gateway-host filesystem resources with the sandbox. They may
157+ be considered insecure because they can negate OpenShell controls such as
158+ workspace isolation and filesystem policy. Use them only when you understand and
159+ accept that loss of isolation.
160+ </Warning >
178161
179- Use a ` bind ` mount only after enabling it in the Podman driver table. Treat
180- this setting as an unsafe operator override:
162+ Use a ` bind ` mount only after enabling it in the Podman driver table:
181163
182164``` toml
183165[openshell .drivers .podman ]
0 commit comments