def compose_run(cmd):
"""
Calls docker compose run using the correct environment.
:param cmd: run command, including container name.
"""
opt = ['--rm']
if service_name is None:
print("please, provide service name")
exit()
with cd(project_dst):
local_cmd = get_compose_cmd() + ['run']
local_cmd += opt
local_cmd += [service_name]
local_cmd += cmd.split()
get_fn()(' '.join(local_cmd))
评论列表
文章目录