LnL7 / nix-docker

Docker images for the Nix package manager
MIT License
288 stars 41 forks source link

Nix-build failing with DockerTools on MacOS #27

Open LindaOrtega opened 5 years ago

LindaOrtega commented 5 years ago

I'm seeing the following error when I run nix-build with a nix file that uses dockerTools on MacOS.

Running the nix-build with this same script was working previously. But I recently updated to Nix 2.2 and that's when it started breaking.

building '/nix/store/1yki5kfxk7c8rmkvcak7p9jsic4xagx7-tarsum.drv' on 'ssh://root@nix-docker'...
failed to initialize build cache at /homeless-shelter/.cache/go-build: mkdir /homeless-shelter: permission denied
builder for '/nix/store/1yki5kfxk7c8rmkvcak7p9jsic4xagx7-tarsum.drv' failed with exit code 1
error: build of '/nix/store/1yki5kfxk7c8rmkvcak7p9jsic4xagx7-tarsum.drv' on 'ssh://root@nix-docker' failed: builder for '/nix/store/1yki5kfxk7c8rmkvcak7p9jsic4xagx7-tarsum.drv' failed with exit code 1
builder for '/nix/store/1yki5kfxk7c8rmkvcak7p9jsic4xagx7-tarsum.drv' failed with exit code 1
kphunter commented 5 months ago

Apparently dockerTools does not work on MacOS, which means it's a struggle to build even the simplest of images...