-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't install Nix 2.2.1 on clean Ubuntu 18.04 (error: cloning builder process: Operation not permitted) #2636
Comments
I'm getting the same results on Ubuntu 18.04; last working nix version is 2.1.3 for me as well. |
Sandboxing doesn't work in unprivileged containers. |
@LnL7 Hmm, this happens during Also, when I run the container, I do use |
If sandboxing is something you don't care about it can be disabled (like the default on <2.2). FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y curl \
&& mkdir -p /nix /etc/nix \
&& chmod a+rwx /nix \
&& echo 'sandbox = false' > /etc/nix/nix.conf
RUN adduser user --home /home/user --disabled-password --gecos "" --shell /bin/bash
CMD /bin/bash -l
USER user
ENV USER user
WORKDIR /home/user
RUN touch .bash_profile \
&& curl https://nixos.org/releases/nix/nix-2.2.1/install | sh |
Maybe Nix should by default fall back to sandbox=false when unpriveleged user namespaces are disabled? related to #2404 |
Normally you should avoid that a software is doing something else than expected. |
I have exactly the same issue on Debian Sid :
|
Same issue for me on Debian Stretch
|
Just to chime in have the same issue in PureOS (Debian 10 based):
|
You can always run:
on debian to enable userns |
Running into the same issue on a Hetzner VPS - no docker involved. Not sure if it's any significance though... |
For me what worked fine was @LnL7's Dockerfile, then passing the flag $ docker run -it -v $(pwd):/src -v nix-store:/nix --privileged ubuntu-nix bash -c "you commands" |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
I'm trying to install Nix using the latest install script in Docker, via the simple Dockerfile below. This works fine with NIx 2.1.3 but now it doesn't work with Nix 2.2.1. I saw #1625 but for me the failure is even earlier than in that issue--the install script doesn't even succeed.
Here's the full error:
The text was updated successfully, but these errors were encountered: