You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(xunix): also mount shared symlinked shared object files (#123)
* fix(xunix): also mount shared object files with .so.N
* chore(Makefile): add test and test-integration targets
* chore(README.md): add hacking and troubleshooting sections
* chore(integration): fix tests under cgroupv2
Signed-off-by: Cian Johnston <[email protected]>
Co-authored-by: Dean Sheather <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+34
Original file line number
Diff line number
Diff line change
@@ -86,3 +86,37 @@ env {
86
86
> }
87
87
> }
88
88
> ```
89
+
90
+
## GPUs
91
+
92
+
When passing through GPUs to the inner container, you may end up using associated tooling such as the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html) or the [NVIDIA GPU Operator](https://docs.nvidia.com/datacenter/cloud-native/gpu-operator/latest/index.html). These will inject required utilities and libraries inside the inner container. You can verify this by directly running (without Envbox) a barebones image like `debian:bookworm` and running `mount` or `nvidia-smi` inside the container.
93
+
94
+
Envbox will detect these mounts and pass them inside the inner container it creates, so that GPU-aware tools run inside the inner container can still utilize these libraries.
95
+
96
+
## Hacking
97
+
98
+
Here's a simple one-liner to run the `codercom/enterprise-minimal:ubuntu` image in Envbox using Docker:
This will store persistent data under `/tmp/envbox`.
115
+
116
+
## Troubleshooting
117
+
118
+
### `failed to write <number> to cgroup.procs: write /sys/fs/cgroup/docker/<id>/init.scope/cgroup.procs: operation not supported: unknown`
119
+
120
+
This issue occurs in Docker if you have `cgroupns-mode` set to `private`. To validate, add `--cgroupns=host` to your `docker run` invocation and re-run.
121
+
122
+
To permanently set this as the default in your Docker daemon, add `"default-cgroupns-mode": "host"` to your `/etc/docker/daemon.json` and restart Docker.
0 commit comments