Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用 python 实现的 python 应用程序,其中包含以下组件:
1. Database 2. python app upono anaconda 3. Linux OS
这个想法是将这三个组件docker化到隔离的容器中,然后通过运行将它们链接在一起。
对我来说,如何将数据库映像与 linux 映像链接起来很清楚,但是如何将 anaconda 和 linux 结合起来呢?anaconda不是应该安装在linux系统上吗?
您将只有两个容器。您的数据库和 python 应用程序可能都需要一种或另一种风格的 Linux 操作系统。在您的 docker 文件中,您将从with ubuntu拉入基础映像并进行更改之类的东西开始。使用基于差异的文件系统,您的更改将分层在基础映像之上。
with ubuntu