We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After
nix run .#dockerImage.copyToDockerDaemon
I want to run the image - I found this hacky way:
docker run (nix eval --impure --expr '(builtins.getFlake (toString ./.)).outputs.packages.x86_64-linux.dockerImage.imageRefUnsafe' --json | jq -r)
Could there be a simpler way? (or is there already?)
e.g. nix run .#dockerImage.printImageRef 💁♂️
nix run .#dockerImage.printImageRef
The text was updated successfully, but these errors were encountered:
I adapted my taskfile to just print the image ref to ./result - so I can
./result
docker run $(cat result)
But I guess that doesn't quite fit a nix run cli 🤔 (and nix2container isn't really meant for nix build, is it?)
nix run
nix build
Sorry, something went wrong.
Found that I can set:
nix2container.buildImage { tag = "latest";
and then docker run image:latest
docker run image:latest
is this good practice? Not sure what other gotchas this might have 🤔
No branches or pull requests
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
💁♂️The text was updated successfully, but these errors were encountered: