先docker-machine env default,输出结果:SET DOCKER_TLS_VERIFY=1SET DOCKER_HOST=tcp://192.168.99.100:2376SET DOCKER_CERT_PATH=C:\Users\lenovo\.docker\machine\machines\defaultSET DOCKER_MACHINE_NAME=defaultSET COMPOSE_CONVERT_WINDOWS_PATHS=trueREM Run this command to configure your shell:REM @FOR /f "tokens=*" %i IN ('docker-machine env default') DO @%i然后将上面的设定值copy下运行。方可正常运行了。