mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 00:21:45 +01:00
just a typo
This commit is contained in:
parent
f97b420af9
commit
412f514bb4
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ check_5_14() {
|
|||
maxretry_unset_containers=""
|
||||
for c in $containers; do
|
||||
container_name=$(docker inspect "$c" --format '{{.Name}}')
|
||||
q for s in $(docker service ls --format '{{.Name}}'); do
|
||||
for s in $(docker service ls --format '{{.Name}}'); do
|
||||
if echo $container_name | grep -q "$s"; then
|
||||
task_id=$(docker inspect "$c" --format '{{.Name}}' | awk -F '.' '{print $NF}')
|
||||
# a container name could arbitrary include a service one: it belongs to a service (created by Docker
|
||||
|
|
Loading…
Reference in a new issue