nix-docker
nix-docker copied to clipboard
Make `docker` executable-name configurable.
Situation
Debian has decided to name their docker executable docker.io
instead of docker
and, as a result, the docker-run
scripts produced by nix-docker
do not run properly on Debian + nix-1.6.1.
Workarounds
So far, patching the runContainerScript
attribute of nix-docker/docker.nix
has been sufficient to let me further explore nix-docker
.
Questions
- Would it be appropriate to make the (name of | path to) the
docker
executable configurable atnix-docker
build time? - If so, should
default.nix
grow apatchPhase
to incorporate this information into therunContainerScript
attribute value? - Alternately, is there a better way to accommodate Debian's variation in naming?