gpt4 book ai didi

macos - docker如何在osx上运行,是否使用流浪汉?

转载 作者:行者123 更新时间:2023-12-02 18:45:23 26 4
gpt4 key购买 nike

我使用的是旧型号MB Air,而流浪汉对我来说是非常耗费资源的。

在OSX上使用docker时,是否只是在后台使用流浪汉在ubuntu上运行我的docker实例?

最佳答案

与不推荐使用的Docker Toolbox(它也可以在MacOS上运行)形成对比,最新版本的Docker for Mac 不使用VirtualBox ,而是使用HyperKit,它是基于xhyve构建的本地MacOS虚拟机管理程序。与VirtualBox相比,HyperKit声称更轻巧。

还请考虑official documentation关于Docker Toolbox和Docker for Mac(重点是我的)的区别和内在性:

Docker for Mac is a Mac native application, that you install in /Applications. [...]

Here are some key points to know about Docker for Mac before you get started:

  • Docker for Mac does not use VirtualBox, but rather HyperKit, a lightweight macOS virtualization solution built on top of Hypervisor.framework in macOS 10.10 Yosemite and higher. [...]
  • The Docker for Mac application does not use docker-machine to provision that VM; but rather creates and manages it directly.
  • At installation time, Docker for Mac provisions an HyperKit VM based on Alpine Linux, running Docker Engine. It exposes the docker API on a socket in /var/run/docker.sock. Since this is the default location where docker will look if no environment variables are set, you can start using docker and docker-compose without setting any environment variables.

[...]

With Docker for Mac, you get only one VM, and you don’t manage it. It is managed by the Docker for Mac application, which includes autoupdate to update the client and server versions of Docker.

关于macos - docker如何在osx上运行,是否使用流浪汉?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41940399/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com