我正在尝试将docker用于我的新项目。我在本地主机中实现了一个项目,在ubuntu中实现了我的操作系统,我的项目基础映像是CentOS,我的服务器操作系统也是CentOS。 现在我不知道我应该删除Docker基本映像以部署服务器还是不运行? 当我的基础映像和服务器操作系统相同时,为服务器定义基础映像是多余的,是否有开销?有必要还是额外?
答案 0 :(得分:0)
来自维基百科:
Docker is a set of platforms as a service product that uses OS-level virtualization
to deliver software in packages called containers. Containers are isolated from one
another and bundle their own software, libraries, and configuration files; they can
communicate with each other through well-defined channels.
Docker从服务器操作系统虚拟化您的软件,而基础映像CentOS也是软件。