1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 14:32:43 -04:00

building-and-running-docker-images: Set system

This will help macOS users. While alternatives are possible[1]
this is the simplest solution.

1: https://github.com/NixOS/nixpkgs/pull/115083
This commit is contained in:
Robert Hensing 2021-03-04 19:26:12 +01:00 committed by GitHub
parent 6e5df119d7
commit d20e1d5927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ Docker images:
.. code:: nix
{ pkgs ? import <nixpkgs> {} }:
{ pkgs ? import <nixpkgs> { system = "x86_64-linux"; } }:
pkgs.dockerTools.buildImage {
name = "hello-docker";