Skip to content

Commit 1bd5eb4

Browse files
committed
chore(satellite): remove unprivileged user namespace configuration
1 parent d7e761b commit 1bd5eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/satellite/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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.
3235
RUN 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-
4848
WORKDIR /app
4949

5050
# Copy package files

0 commit comments

Comments
 (0)