add support for creating volume and network with label definition

Signed-off-by: dbdd <wangtong2712@gmail.com>
This commit is contained in:
dbdd 2016-09-27 11:02:56 +08:00
commit bdcce13f4a
9 changed files with 211 additions and 5 deletions

View 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
View 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"