network
在构建时为RUN指令设置连接到docker的网络。
build:
context: .
network: host
build:
context: .
network: custom_network_1
在构建时,使用none来禁用网络。
build:
context: .
network: none
Last updated
Was this helpful?
在构建时为RUN指令设置连接到docker的网络。
build:
context: .
network: host
build:
context: .
network: custom_network_1
在构建时,使用none来禁用网络。
build:
context: .
network: none
Last updated
Was this helpful?