container_name

指定一个自定义的容器名而不是使用默认生成的名字。

 container_name: my-web-container

Docker名称必须唯一,使用自定义的容器名称时,无法为服务扩展一个以上的容器。尝试这种操作会产生错误。

Last updated