Skip to content

Commit 7b43f79

Browse files
committed
Move the network assignment for a created Docker Swarm service to the TaskTemplate structure as per the changes in docker 29.0 and metioned/explained at docker/docker-py#3362
1 parent 8b53468 commit 7b43f79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

jhub/swarmspawner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ async def start(self):
11061106
"container_spec": container_spec,
11071107
"resources": resources,
11081108
"placement": placement,
1109+
"networks": networks,
11091110
}
11101111

11111112
if task_log_driver:
@@ -1120,7 +1121,6 @@ async def start(self):
11201121
"create_service",
11211122
task_tmpl,
11221123
name=self.service_name,
1123-
networks=networks,
11241124
endpoint_spec=endpoint_spec,
11251125
)
11261126
self.service_id = resp["ID"]

0 commit comments

Comments
 (0)