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.
也许这是一个基本问题,但我真的不是 Portainer 的专业人士。我有一个本地 Portainer,一个 Pycharm 来管理 Python 代码。修改代码并将此更改部署到本地 Portainer 后,我应该怎么做?
谢谢
如果您已将代码直接驻留在容器中的文件夹挂载,则更改也将应用到您的容器中,因此无需进一步操作。
如果您尚未将文件夹挂载到容器中(例如,如果您在构建映像时复制代码),则必须重新构建映像。当然,这需要做更多的工作,所以我建议使用已安装的卷。