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
dockerexecutable configurable atnix-dockerbuild time? - If so, should
default.nixgrow apatchPhaseto incorporate this information into therunContainerScriptattribute value? - Alternately, is there a better way to accommodate Debian's variation in naming?