daemon: added initial support to docker nodes for setting up volumes and bind mounts

This commit is contained in:
Blake Harnden 2022-05-11 13:51:02 -07:00
parent 25c3c42b40
commit fd3be57f57
3 changed files with 39 additions and 3 deletions

View file

@ -521,6 +521,8 @@ class Session:
kwargs = dict(_id=_id, name=name, server=server)
if _class in CONTAINER_NODES:
kwargs["image"] = options.image
kwargs["binds"] = options.binds
kwargs["volumes"] = options.volumes
node = self.create_node(_class, start, **kwargs)
# set node attributes