docker host and docker container
前言
本文主要介绍不同宿主机和容器机之前混合搭配的情况。
一、宿主机和容器
宿主机:
Linux,Windows 10, mac os x
容器机:
Linux, windows, mac os x
宿主机和容器机的笛卡尔积:
宿主机器 | 容器机器 |
---|---|
linux | linux |
linux | mac |
linux | windows |
windows | linux |
windows | mac |
windows | windows |
mac | linux |
mac | mac |
mac | windows |
二、实际验证
linux container in linux host是肯定支持的,其他的排列组合就不太确定了。
https://stackoverflow.com/questions/45380972/how-can-i-run-a-docker-windows-container-on-osx
三、总结
其实同一个问题,很多充满好奇心的程序员之前都想过了,也问过了