Command works on "docker for windows" but not on "boot2docker"

I am trying to run docker from within a docker.

it does run from within “docker for windows”. However, now we need to use dockers on windows 7 and I configured boot2docker and this command does not run properly.

Can anyone help?

docker run --rm -i -t --privileged=true -v /var/run/docker.sock:/var/run/docker.sock -v /usr/lib64/ -v /usr/bin/docker:/bin/docker alpine docker images

docker: Error response from daemon: Container command ‘docker’ not found or does not exist…

IMHO I’d use bins in the container itself, rather than trying to bind volumes.
e.g. something like:

Note this is using Ubuntu, but you could easily sub out for alpine.

sudo docker run --rm -it --name docker-toolbox -v /var/run/docker.sock:/var/run/docker.sock:ro gavinjonespf/docker-toolbox:latest bash