Skip to content
Snippets Groups Projects
Verified Commit 39532430 authored by anarcat's avatar anarcat
Browse files

hotfix: do not call docker with --tty, it crashes under systemd

Any `docker run --tty` (which `-it` implies) crashes with:

    the input device is not a TTY

... when running as a systemd service. It seems like keeping
`-i` (which we expand to `--interactive` for clarity) keeps everything
normal (ie. we still see the container output).

Closes: #15
parent 90746bde
No related branches found
No related tags found
No related merge requests found
......@@ -246,7 +246,7 @@ class DockerRunner(object):
cmd = [
"docker",
"run",
"-it",
"--interactive",
f"--cidfile={tmpdir}/cidfile", # to get the container ID
]
cmd += docker_args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment