Fisrt, download and run the nixos/nix image:
docker run -ti nixos/nix /bin/sh
Subscribe to the nixos channel (eventually, certificate-transparency will be available on the nixpkgs channel too but as of 2015-12-14 it's not):
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
Download the latest channel metadata:
nix-channel --update
Install the package:
nix-env -iA nixos.certificate-transparency
You'll need to do the following:
- run the ubuntu image
- install nix (they have a curlsudobash installer)
- continue as above