From 0c194416082aa3ea4632d8f7e89c27264ef707b8 Mon Sep 17 00:00:00 2001 From: David Dal Busco Date: Wed, 25 Jun 2025 19:31:26 +0200 Subject: [PATCH] fix: the input device is not a TTY when running juno dev start headless --- src/services/dev/start/docker.services.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/services/dev/start/docker.services.ts b/src/services/dev/start/docker.services.ts index 115fef76..c7532428 100644 --- a/src/services/dev/start/docker.services.ts +++ b/src/services/dev/start/docker.services.ts @@ -33,6 +33,7 @@ import { } from '../../../utils/env.utils'; import {copyTemplateFile} from '../../../utils/fs.utils'; import {readPackageJson} from '../../../utils/pkg.utils'; +import {isHeadless} from '../../../utils/process.utils'; import {confirmAndExit} from '../../../utils/prompt.utils'; import {initConfigNoneInteractive, promptConfigType} from '../../init.services'; @@ -180,7 +181,7 @@ const startEmulator = async () => { // -i: Keep STDIN open even if not attached. Equivalent to `--interactive`. await execute({ command: 'docker', - args: ['start', '-a', '-i', containerName] + args: ['start', '-a', ...(isHeadless() ? [] : ['-i']), containerName] }); return; } @@ -227,7 +228,7 @@ const startEmulator = async () => { command: 'docker', args: [ 'run', - '-it', + ...(isHeadless() ? [] : ['-it']), '--name', containerName, '-p',