fix(docker-exec-via-sock): 修复用户参数处理中的语法错误
This commit is contained in:
2
docker-exec-via-sock.sh
Normal file → Executable file
2
docker-exec-via-sock.sh
Normal file → Executable 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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user