mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 08:42:33 +01:00
add support for dockerd
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
84a764e3d8
commit
325178284a
1 changed files with 7 additions and 1 deletions
|
@ -55,7 +55,13 @@ get_command_line_args() {
|
||||||
get_docker_cumulative_command_line_args() {
|
get_docker_cumulative_command_line_args() {
|
||||||
OPTION="$1"
|
OPTION="$1"
|
||||||
|
|
||||||
get_command_line_args "docker daemon" |
|
if ! get_command_line_args "docker daemon" > 1 ; then
|
||||||
|
line_arg="docker daemon"
|
||||||
|
else
|
||||||
|
line_arg="dockerd"
|
||||||
|
fi
|
||||||
|
|
||||||
|
get_command_line_args "$line_arg" |
|
||||||
# normalize known long options to their short versions
|
# normalize known long options to their short versions
|
||||||
sed \
|
sed \
|
||||||
-e 's/\-\-debug/-D/g' \
|
-e 's/\-\-debug/-D/g' \
|
||||||
|
|
Loading…
Reference in a new issue