diff --git a/tests/4_container_images.sh b/tests/4_container_images.sh index 165b5e2..94e2697 100644 --- a/tests/4_container_images.sh +++ b/tests/4_container_images.sh @@ -49,7 +49,7 @@ check_4_1() { for c in $containers; do user=$(docker inspect --format 'User={{.Config.User}}' "$c") - if [ "$user" = "User=" ] || [ "$user" = "User=[]" ] || [ "$user" = "User=" ]; then + if [ "$user" = "User=0" ] || [ "$user" = "User=root" ] || [ "$user" = "User=" ] || [ "$user" = "User=[]" ] || [ "$user" = "User=" ]; then # If it's the first container, fail the test if [ $fail -eq 0 ]; then warn "$check_4_1"