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:
parent
6e5df119d7
commit
d20e1d5927
|
@ -24,7 +24,7 @@ Docker images:
|
|||
|
||||
.. code:: nix
|
||||
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
{ pkgs ? import <nixpkgs> { system = "x86_64-linux"; } }:
|
||||
|
||||
pkgs.dockerTools.buildImage {
|
||||
name = "hello-docker";
|
||||
|
|
Loading…
Reference in a new issue