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.
FROM ubuntu:18.04
RUN apt-get update
RUN apt-get install -y curl
RUN mkdir /nix
RUN chmod a+rwx /nix
RUN adduser user --home /home/user --disabled-password --gecos "" --shell /bin/bash
USER user
ENV USER user
WORKDIR /home/user
RUN curl https://nixos.org/nix/install | sh
Here's the full error:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 22.5M 100 22.5M 0 0 4152k 0 0:00:05 0:00:05 --:--:-- 4854k
performing a single-user installation of Nix...
copying Nix to /nix/store.................................
initialising Nix database...
Nix: creating /home/user/.nix-profile
installing 'nix-2.2.1'
error: cloning builder process: Operation not permitted
error: unable to start build process
/tmp/nix-binary-tarball-unpack.hqawN4uSPr/unpack/nix-2.2.1-x86_64-linux/install: unable to install Nix into your default profile
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: