add support for creating volume and network with label definition
Signed-off-by: dbdd <wangtong2712@gmail.com>
This commit is contained in:
parent
9248298a4a
commit
bdcce13f4a
9 changed files with 211 additions and 5 deletions
13
tests/fixtures/networks/network-label.yml
vendored
Normal file
13
tests/fixtures/networks/network-label.yml
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
version: "2.1"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: busybox
|
||||
command: top
|
||||
networks:
|
||||
- network_with_label
|
||||
|
||||
networks:
|
||||
network_with_label:
|
||||
labels:
|
||||
- "label_key=label_val"
|
||||
13
tests/fixtures/volumes/volume-label.yml
vendored
Normal file
13
tests/fixtures/volumes/volume-label.yml
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
version: "2.1"
|
||||
|
||||
services:
|
||||
web:
|
||||
image: busybox
|
||||
command: top
|
||||
volumes:
|
||||
- volume_with_label:/data
|
||||
|
||||
volumes:
|
||||
volume_with_label:
|
||||
labels:
|
||||
- "label_key=label_val"
|
||||
Loading…
Add table
Add a link
Reference in a new issue