diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index de0c9d5a6..ee3329c43 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -452,7 +452,7 @@ const message = {
containerPort: 'Container port',
serverPort: 'Host port',
cmd: 'Command',
- cmdHelper: 'one in a row, for example: \n/bin/bash \necho "hello"',
+ cmdHelper: 'Example: echo "hello"',
autoRemove: 'Auto remove',
cpuQuota: 'NacosCPU',
memoryLimit: 'Memory',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 92b89af12..5901894d7 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -461,7 +461,7 @@ const message = {
containerPort: '容器端口',
serverPort: '服务器端口',
cmd: '启动命令',
- cmdHelper: '一行一个,例:\n/bin/bash \necho "hello"',
+ cmdHelper: '例:echo "hello"',
autoRemove: '容器退出后自动删除容器',
cpuQuota: 'CPU 限制',
memoryLimit: '内存限制',
diff --git a/frontend/src/views/container/container/create/index.vue b/frontend/src/views/container/container/create/index.vue
index 979f1d865..2895caaa7 100644
--- a/frontend/src/views/container/container/create/index.vue
+++ b/frontend/src/views/container/container/create/index.vue
@@ -71,12 +71,7 @@
-
+
{{ $t('container.autoRemove') }}
@@ -330,7 +325,7 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
form.labels = form.labelsStr.split('\n');
}
if (form.cmdStr.length !== 0) {
- form.cmd = form.cmdStr.split('\n');
+ form.cmd = form.cmdStr.split(' ');
}
switch (form.memoryUnit) {
case 'KB':