Set up (pointers here) nixos first.
running the container like this docker run --name redis -dit -p 0.0.0.0:6379:6379 imagename
(microsoft/WSL#5618 (comment)) let's you from the host windows do either:
Create [#file-redis-small.nix] like this (mod of https://yann.hodique.info/blog/using-nix-to-build-docker-images/, source: https://gist.github.com/sigma/9887c299da60955734f0fff6e2faeee0, this again modding http://lethalman.blogspot.com/2016/04/cheap-docker-images-with-nix_15.html, latter via https://nixos.wiki/wiki/Docker)
curl localhost:6379
or
NIX_PATH=nixpkgs=http://nixos.org/channels/nixpkgs-unstable/nixexprs.tar.xz nix-shell -p redis redis-cli -c
Works even with VPN active once the docker container is started at least.