Loading behave_utils/docker.py +5 −0 Original line number Diff line number Diff line Loading @@ -186,6 +186,7 @@ class Container(Item): env: Environ = {}, network: Network|None = None, entrypoint: HostMount|Argument|None = None, privileged: bool = False, ): if isinstance(entrypoint, tuple): volumes = [*volumes, entrypoint] Loading @@ -196,6 +197,7 @@ class Container(Item): self.volumes = volumes self.env = env self.entrypoint = entrypoint self.privileged = privileged self.networks = dict[Network, Tuple[str, ...]]() self.cid: str|None = None Loading Loading @@ -256,6 +258,9 @@ class Container(Item): if self.entrypoint: opts.append(f"--entrypoint={self.entrypoint}") if self.privileged: opts.append("--privileged") self.cid = docker_output('container', 'create', *opts, self.image.iid, *self.cmd) assert self.cid Loading Loading
behave_utils/docker.py +5 −0 Original line number Diff line number Diff line Loading @@ -186,6 +186,7 @@ class Container(Item): env: Environ = {}, network: Network|None = None, entrypoint: HostMount|Argument|None = None, privileged: bool = False, ): if isinstance(entrypoint, tuple): volumes = [*volumes, entrypoint] Loading @@ -196,6 +197,7 @@ class Container(Item): self.volumes = volumes self.env = env self.entrypoint = entrypoint self.privileged = privileged self.networks = dict[Network, Tuple[str, ...]]() self.cid: str|None = None Loading Loading @@ -256,6 +258,9 @@ class Container(Item): if self.entrypoint: opts.append(f"--entrypoint={self.entrypoint}") if self.privileged: opts.append("--privileged") self.cid = docker_output('container', 'create', *opts, self.image.iid, *self.cmd) assert self.cid Loading