Docker和GO运行时

首先,我称自己为C / C ++程序员。 我在Docker或Go上没有多年的经验。 因此,尽管我尽最大努力在Google搜索上写这篇文章,但我的问题可能很愚蠢。 </ p>

我的问题是,Docker在运行时是否需要GO运行时。 我读过docker本身是用GO编写的。 我可以看到,GO编译器是构建docker二进制文件所必需的。 说,我在构建机器上构建了一个docker二进制文件并进行远程分发。 例如,我正在计算机A上构建一个.deb docker软件包,并将其分发给用户的计算机B,C,D,E和F。B,C,D,E和F是否需要安装GO才能安装到 运行我的码头工人? </ p>

如果docker用C / C ++编写并与DLL链接,我会知道答案。 如果docker用C / C ++编写并静态链接,我也会知道答案。 但是,我不太了解GO程序的运行方式,特别是docker要求什么。</ p>
</ div>

展开原文

原文

First of all, I would call myself a C/C++ programmer. I do not have years of experiences on Docker or Go. Thus, my questions might be silly although I am writing this after putting my best efforts on Google search.

My question is whether Docker requires GO runtime when it runs or not. I have read that docker itself is written in GO. I could see that a GO compiler is necessary to build a docker binary. Say, I build a docker binary on a build machine and remotely distribute. For example, I am building a .deb docker package on machine A, and distributes it for the users' machine B, C, D, E, and F. Do B, C, D, E, and F ever need GO installed to run my docker?

If docker were written in C/C++ and linked with DLL(s), I would know the answer. If docker were written in C/C++ and statically linked, I would also know the answer. However, I do not know so well how a GO program runs and what particularly docker requires.

1个回答




我的问题是Docker在运行时是否需要GO运行时。 我已经读过docker本身是用GO编写的。</ p>
</ blockquote>

不,不是。 Go生成静态链接的二进制文件,因此不需要任何二进制文件 dll依赖于运行时。</ p>

有关实际Docker依赖关系的详细列表,请参阅“ 从二进制文件安装Docker CE ”。</ p>
</ div>

展开原文

原文

My question is whether Docker requires GO runtime when it runs or not. I have read that docker itself is written in GO.

No, it does not. And Go produces statically linked binaries, so it does not require any dll dependencies on runtime.

For a more detailed list of actual Docker dependencies, see "Install Docker CE from binaries".

dounieyan2036
dounieyan2036 非常感谢!
接近 3 年之前 回复
立即提问
相关内容推荐