一个docker info
命令将生成元数据,其中包含有关当前Docker安装的一些信息。键值对之一是OSType
。我使用Windows 10计算机,但是OSType
被列为linux
。我对这是什么及其含义感到好奇:
OSType
是图像和容器的全局参数,还是每个新生成的图像实现不同的OSType
?
主要是Windows用户,如果可以简单地将Windows用作Docker容器的主要操作系统,但我真的很喜欢,但我不确定是否确实可行?
答案 0 :(得分:0)
是的,您可以使用dockercli工具更改容器类型
Usage: DockerCli.exe [-SwitchDaemon] [-Version]
-Version: Show the Docker for Windows version information
-SwitchDaemon: Point the Docker CLI to either Linux containers or Windows containers
-SharedDrives: List the shared drives
关于您的第一个问题,我从未使用过Windows版本的docker,我唯一了解的是您需要将守护程序更改为使用linux或Windows容器。