fix(docker-exec-via-sock): 修复用户参数处理中的语法错误

This commit is contained in:
严浩
2025-09-23 15:08:16 +08:00
parent 055b8ad63e
commit 3c688efbb3

2
docker-exec-via-sock.sh Normal file → Executable file
View File

@@ -63,7 +63,7 @@ docker_exec_create() {
AttachStderr: true, AttachStderr: true,
Tty: true, Tty: true,
Cmd: ["sh", "-c", $cmd] Cmd: ["sh", "-c", $cmd]
} | if ($user | length) > 0 then .User = $user else . end) } | if ($user | length) > 0 then .User = $user else . end')
DOCKER_LAST_RESPONSE=$(curl --silent --show-error --unix-socket "$DOCKER_SOCKET" \ DOCKER_LAST_RESPONSE=$(curl --silent --show-error --unix-socket "$DOCKER_SOCKET" \
-X POST \ -X POST \