File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ RUN git clone --depth 1 https://github.com/google/nsjail.git /tmp/nsjail && \
2929 rm -rf /tmp/nsjail
3030
3131# Clean up build dependencies to reduce image size
32+ # Note: For nsjail to work with unprivileged user namespaces, the HOST system must have:
33+ # kernel.unprivileged_userns_clone=1
34+ # This cannot be set from inside the container. See README for deployment instructions.
3235RUN apt-get remove -y \
3336 autoconf \
3437 bison \
@@ -42,9 +45,6 @@ RUN apt-get remove -y \
4245 apt-get autoremove -y && \
4346 rm -rf /var/lib/apt/lists/*
4447
45- # Enable unprivileged user namespaces (required for nsjail)
46- RUN echo "kernel.unprivileged_userns_clone=1" > /etc/sysctl.d/00-local-userns.conf
47-
4848WORKDIR /app
4949
5050# Copy package files
You can’t perform that action at this time.
0 commit comments