mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +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=""
|
maxretry_unset_containers=""
|
||||||
for c in $containers; do
|
for c in $containers; do
|
||||||
container_name=$(docker inspect "$c" --format '{{.Name}}')
|
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
|
if echo $container_name | grep -q "$s"; then
|
||||||
task_id=$(docker inspect "$c" --format '{{.Name}}' | awk -F '.' '{print $NF}')
|
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
|
# a container name could arbitrary include a service one: it belongs to a service (created by Docker
|
||||||
|
|
Loading…
Reference in a new issue