Services can join 'bridge' or 'host'

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-01-14 13:16:02 +00:00
commit ca68c9faa4
3 changed files with 45 additions and 6 deletions

View file

@ -0,0 +1,17 @@
version: 2
services:
bridge:
image: busybox
command: top
networks: ["bridge"]
host:
image: busybox
command: top
networks: ["host"]
none:
image: busybox
command: top
networks: []