Home  >  Q&A  >  body text

docker命令行只有通过boot2docker工具才可以开启么?

貌似windows命令行中不能直接使用docker命令,需要用boot2docker引导到docker命令行窗口:(

迷茫迷茫2761 days ago690

reply all(5)I'll reply

  • 黄舟

    黄舟2017-04-21 11:20:50

    Under Windows, docker is really not playable, so I guess it’s just a taste of the novelty, and it has only started to support windows in the past few months. As far as I know, there is only boot2docker.
    Now that virtualbox is installed, why not install ubuntu to try out docker without having to worry too much about peripheral tools

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-21 11:20:50

    Docker runs on Linux in a virtual machine under Windows, so you have to use the Linux terminal. boot2docker should use ssh to connect to linux. Of course, you can also use your favorite, such as the powerful xshell

    reply
    0
  • 阿神

    阿神2017-04-21 11:20:50

    Since docker is based on the LXC function of the Linux kernel, it cannot be used directly on Windows, at least not yet.

    The usual approach is to run a Linux VM in Windows and run Docker on it.

    The same is true for Boot2Docker, which actually runs a VirtualBox VM.

    reply
    0
  • 黄舟

    黄舟2017-04-21 11:20:50

    You can find the bootdocker IP and use xshell to connect to it on your local machine, which is more beautiful

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-21 11:20:50

    Since Docker is based on the Linux kernel, you must use the Boot2Docker client provided by Docker. It actually installs a lightweight virtual machine in Windows. Please see the official website for specific usage

    reply
    0
  • Cancelreply