Repository navigation
update the docs for using host-network - #6124
Conversation
with syntax before, there is WARN[0000] network hostnet: network.external.name is deprecated in favor of network.name tested with docker-compose-file-version 3.5 Server Version: 17.12.0-ce in swarm mode
|
Hm, the warning disappears, but without using 'external' the swarm does create a network named which is overlay. So what about the deprecation? |
|
Hi, @rdxmb ... let's see if I understand you:
@shin- are the Compose examples under "HOST OR NONE" accurate for v3.5? For reference: #4593 / #4959 |
|
The new recommend syntax would be: networks:
hostnet:
external: true
name: host |
Not exactly. It's not failing, its just a deprecation warning: networks: @shin- it seems to work. Thanks. https://docs.docker.com/compose/compose-file/#network-configuration-reference |
|
PR changed. |
with syntax before, there is
WARN[0000] network hostnet: network.external.name is deprecated in favor of network.nametested with docker-compose-file-version 3.5
Server Version: 17.12.0-ce
in swarm mode
Proposed changes
Unreleased project version (optional)
Related issues (optional)