Skip to content

Commit 92cb26a

Browse files
author
Matthew Fisher
committed
fix(controller): use /bin/sh as entrypoint for run
1 parent e29bcf8 commit 92cb26a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/api/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def run_command(c, command):
7171
if rc != 0:
7272
raise EnvironmentError('Could not pull image: {pull_image}'.format(**locals()))
7373
# run the command
74-
docker_args = ' '.join(['--entrypoint=/bin/bash',
74+
docker_args = ' '.join(['--entrypoint=/bin/sh',
7575
'-a', 'stdout', '-a', 'stderr', '--rm', image])
7676
escaped_command = command.replace("'", "'\\''")
7777
command = r"docker run {docker_args} -c \'{escaped_command}\'".format(**locals())

0 commit comments

Comments
 (0)