Docker on windows fails with //./pipe/docker_engine: The system cannot find the file specified

Please follow the steps below
open cmd and type the following

  1. docker-machine create box (It may ask for permissions. Allow all)

  2. docker-machine env box. After this, you should see the below output
    SET DOCKER_TLS_VERIFY=1
    SET DOCKER_HOST=tcp://192.168.99.100:2376
    SET DOCKER_CERT_PATH=C:\Users\rishi.docker\machine\machines\box
    SET DOCKER_MACHINE_NAME=box
    SET COMPOSE_CONVERT_WINDOWS_PATHS=true
    REM Run this command to configure your shell:
    REM @FOR /f “tokens=*” %i IN (‘docker-machine env box’) DO @%i

  3. Run the command “@FOR /f “tokens=*” %i IN (‘docker-machine env box’) DO @%i” As suggested in the output

This should make it work. The reason for this is that docker-enging runs as a VM on windows. As a result, the first line creates the docker engine VM

The lines
docker-machine env box
@FOR /f “tokens=*” %i IN (‘docker-machine env box’) DO @%ix
help to connect the current instance of cmd to the VM created in the first line. These will have to be run every time you open a new instance of CMD

Also check the suggestions in the link below for additional information