Home  >  Q&A  >  body text

Can't open docker in two windows

As shown in the picture, an error is reported when entering docker ps in the second window. Is this a weird situation?

我想大声告诉你我想大声告诉你2728 days ago919

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-05-24 11:34:58

    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

    $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

    $env | grep docker

    4. See more Docs below

    reply
    0
  • Cancelreply