From fbdbd277f7fad3a0cf336c8e795f2f6bf3c157e3 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Wed, 13 Sep 2023 10:47:13 +0100 Subject: [PATCH] fix(docker/container): pass empty command and entrypoint [EE-6106] (#10285) --- .../docker/containers/CreateView/CommandsTab/toRequest.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/react/docker/containers/CreateView/CommandsTab/toRequest.ts b/app/react/docker/containers/CreateView/CommandsTab/toRequest.ts index 99b59d19e..3810b5843 100644 --- a/app/react/docker/containers/CreateView/CommandsTab/toRequest.ts +++ b/app/react/docker/containers/CreateView/CommandsTab/toRequest.ts @@ -20,14 +20,18 @@ export function toRequest( User: values.user, WorkingDir: values.workingDir, ...getConsoleConfig(values.console), - }; + } satisfies CreateContainerRequest; if (values.cmd) { config.Cmd = commandStringToArray(values.cmd); + } else if (values.cmd === null) { + delete config.Cmd; } if (values.entrypoint) { config.Entrypoint = commandStringToArray(values.entrypoint); + } else if (values.entrypoint === null) { + delete config.Entrypoint; } return config;