We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a18f91b commit 7870503Copy full SHA for 7870503
docker/models/containers.py
@@ -1148,14 +1148,14 @@ def _create_container_args(kwargs):
1148
network = kwargs.pop('network', None)
1149
network_config = kwargs.pop('network_config', None)
1150
if network:
1151
- network_configuration = EndpointConfig(
+ endpoint_config = EndpointConfig(
1152
host_config_kwargs['version'],
1153
**network_config
1154
) if network_config else None
1155
1156
create_kwargs['networking_config'] = NetworkingConfig(
1157
- {network: network_configuration}
1158
- )
+ {network: endpoint_config}
+ ) if endpoint_config else {network: None}
1159
host_config_kwargs['network_mode'] = network
1160
1161
# All kwargs should have been consumed by this point, so raise
0 commit comments