Fix #2804: Add ipv4 and ipv6 static addressing
- Added ipv4_network and ipv6_network to the networks section in the service section for each configured network - Added feature documentation - Added unit tests Signed-off-by: Matt Daue <mattdaue@gmail.com>
This commit is contained in:
parent
8a86e204a0
commit
ee136446a2
8 changed files with 178 additions and 9 deletions
23
tests/fixtures/networks/network-static-addresses.yml
vendored
Executable file
23
tests/fixtures/networks/network-static-addresses.yml
vendored
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
version: "2"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: busybox
|
||||
command: top
|
||||
networks:
|
||||
static_test:
|
||||
ipv4_address: 172.16.100.100
|
||||
ipv6_address: fe80::1001:100
|
||||
|
||||
networks:
|
||||
static_test:
|
||||
driver: bridge
|
||||
driver_opts:
|
||||
com.docker.network.enable_ipv6: "true"
|
||||
ipam:
|
||||
driver: default
|
||||
config:
|
||||
- subnet: 172.16.100.0/24
|
||||
gateway: 172.16.100.1
|
||||
- subnet: fe80::/64
|
||||
gateway: fe80::1001:1
|
||||
Loading…
Add table
Add a link
Reference in a new issue