File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def generate(cname):
60
60
#'log_driver': cattrs['HostConfig']['LogConfig']['Type'],
61
61
#'log_opt': cattrs['HostConfig']['LogConfig']['Config'],
62
62
'logging' : {'driver' : cattrs ['HostConfig' ]['LogConfig' ]['Type' ], 'options' : cattrs ['HostConfig' ]['LogConfig' ]['Config' ]},
63
- 'networks' : {x for x in cattrs ['NetworkSettings' ]['Networks' ].keys ()},
63
+ 'networks' : {x for x in cattrs ['NetworkSettings' ]['Networks' ].keys () if x != 'bridge' },
64
64
'security_opt' : cattrs ['HostConfig' ]['SecurityOpt' ],
65
65
'ulimits' : cattrs ['HostConfig' ]['Ulimits' ],
66
66
'volumes' : cattrs ['HostConfig' ]['Binds' ],
@@ -80,6 +80,9 @@ def generate(cname):
80
80
'tty' : cattrs ['Config' ]['Tty' ]
81
81
}
82
82
83
+ if values ['networks' ] == set ():
84
+ del values ['networks' ]
85
+
83
86
networklist = c .networks .list ()
84
87
networks = {}
85
88
for network in networklist :
You can’t perform that action at this time.
0 commit comments