This commit is contained in:
Olivier 'reivilibre' 2020-12-31 21:06:17 +00:00
parent d1d196821f
commit 3e8c8b703d

View File

@ -1,5 +1,5 @@
from enum import Enum
from typing import Optional, Tuple, Dict
from typing import Dict, Optional, Tuple
import attr
@ -86,8 +86,12 @@ class DockerContainerRun(Utensil):
async def execute(self, channel: Channel, worktop: Worktop):
try:
container = _docker_client().containers.run(
self.image, self.command, detach=True,
name=self.name, ports=self.ports, volumes=self.volumes
self.image,
self.command,
detach=True,
name=self.name,
ports=self.ports,
volumes=self.volumes,
)
except docker.errors.ImageNotFound: