network_mode

网络模式。和docker客户端 --network一样使用相同的参数,加上一种特殊形式service:[service name]。

network_mode: "bridge"
network_mode: "host"
network_mode: "none"
network_mode: "service:[service name]"
network_mode: "container:[container name/id]"

Last updated