1. Please learn in detail how docker runs on windows and macos.
2. Learn more about the working principle of docker-machine
2. How to solve the problem
1. To access docker under windows, you need to use a window similar to gitbash, which contains the docker-machine link and the environment variable env of the default docker operating system boot2docker.
2. You cannot play like this under cmd, but you can use it
$docker-machine.exe ssh default
Link to the default host like this
3. Use the desktop icon Docker Quickstart Terminal to open View the environment variables
1.Explanation
1. Please learn in detail how docker runs on windows and macos.
2. Learn more about the working principle of docker-machine
2. How to solve the problem
1. To access docker under windows, you need to use a window similar to gitbash, which contains the docker-machine link and the environment variable env of the default docker operating system boot2docker.
2. You cannot play like this under cmd, but you can use it
Link to the default host like this
3. Use the desktop icon Docker Quickstart Terminal to open
View the environment variables
4. See more Docs below