Docker Compose Service 容器命名规则
使用 Docker Compose 创建名为 'haren' 的服务时,容器的名称将以以下格式命名:
<haren 项目名称>_<service 名称>_<index 编号>
例如,如果 haren 项目名称为 'myproject',service 名称为 'web',index 编号为 1,则容器的名称将为:
myproject_web_1
原文地址: http://www.cveoy.top/t/topic/nsud 著作权归作者所有。请勿转载和采集!