Open tennox opened 7 months ago
I adapted my taskfile to just print the image ref to ./result
- so I can
docker run $(cat result)
But I guess that doesn't quite fit a nix run
cli :thinking: (and nix2container isn't really meant for nix build
, is it?)
Found that I can set:
nix2container.buildImage {
tag = "latest";
and then docker run image:latest
is this good practice? Not sure what other gotchas this might have :thinking:
After
I want to run the image - I found this hacky way:
Could there be a simpler way? (or is there already?)
e.g.
nix run .#dockerImage.printImageRef
:tipping_hand_man: