Docker cannot be opened in two windows

  docker, question


As shown in the figure, the second window input docker ps will report an error, what is this?

I. description

1. Please learn in detail how docker runs on windows and macos.

2. Learn the working principle of docker-machine in depth

II. How to Solve the Problem

1. Access to dockers under requires a window similar to gitbash, which contains the environment variable env of docker-machine Link, the default docker operating system boot2docker.

2. This is not allowed under cmd, but it can be used

$docker-machine.exe ssh default

This links to the default host


3. use the desktop icon Docker Quickstart Terminal to open
View environment variables

$env | grep docker

4. See more belowDocs