可以在Mac上切换Docker的SwitchDaemon吗?

huangapple go评论48阅读模式
英文:

Is it possible to SwitchDaemon for Docker on Mac?

问题

我正在尝试在Mac上执行SwitchDaemon,这在Windows上可以使用DockerCli.exe来实现。

在Mac OS上是否有类似于./DockerCli.exe -SwitchDaemon的方式?

Windows示例。

只是为了提供Docker版本信息:

客户端:
 Cloud integration: v1.0.33
 版本:           24.0.2
 API版本:       1.43
 Go版本:        go1.20.4
 Git提交:        cb74dfc
 构建时间:       2023年5月25日星期四
 操作系统/架构:  darwin/amd64
 上下文:         桌面Linux

服务器:Docker Desktop 4.20.1 (110738)
 引擎:
  版本:         24.0.2
  API版本:     1.43(最低版本1.12)
  Go版本:      go1.20.4
  Git提交:      659604f
  构建时间:     2023年5月25日星期四
  操作系统/架构:linux/amd64
  实验性特性:   false
 containerd:
  版本:         1.6.21
  Git提交:      3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  版本:         1.1.7
  Git提交:      v1.1.7-0-g860f061
 docker-init:
  版本:         0.19.0
  Git提交:      de40ad0
英文:

I'm trying to do SwitchDaemon for docker on mac which is possible on Windows by using DockerCli.exe

Is there a way to get something similar like ./DockerCli.exe -SwitchDaemon on Mac OS?

Windows example.

Just in case Docker version:

Client:
 Cloud integration: v1.0.33
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:51:16 2023
 OS/Arch:           darwin/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.20.1 (110738)
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:52:17 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

答案1

得分: 1

似乎可以通过在Mac上使用虚拟机来运行Windows容器,就像这个答案中所提到的,使用这个GitHub存储库

然而,出于法律原因,Mac上的Docker桌面版本不包含Windows虚拟机,不能本地运行Windows容器。它只包含用于Linux的虚拟机,并且只本地支持Linux容器。

英文:

It seems that it is possible to run Windows containers on MacOS by using a virtual machine as per this answer using this GitHub repo

However, likely for legal reasons, docker for desktop on MacOS does not contain a windows VM and cannot run Windows containers natively. It only contains a VM for Linux and only supports Linux containers natively.

huangapple
  • 本文由 发表于 2023年6月12日 08:46:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/76453075.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定