We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following is in docker-bench-security/tests/1_host_configuration.sh:
docker-bench-security/tests/1_host_configuration.sh
docker_users=$(grep 'docker' /etc/group) if command -v getent >/dev/null 2>&1; then docker_users=$(getent group docker) fi docker_users=$(printf "%s" "$docker_users" | awk -F: '{print $4}')
docker_users=$(grep 'docker' /etc/group)=>docker:x:110: docker_users=$(getent group docker)=>docker:x:110: docker_users=$(printf "%s" "$docker_users" | awk -F: '{print $4}')=>``
docker_users=$(grep 'docker' /etc/group)
docker:x:110:
docker_users=$(getent group docker)
docker_users=$(printf "%s" "$docker_users" | awk -F: '{print $4}')
The last line destroys the content of docker_users.
docker_users
The text was updated successfully, but these errors were encountered:
Originally thought it had to deal with getent, but it doesn't so ignore that part in the initial post.
getent
Sorry, something went wrong.
konstruktoid
No branches or pull requests
The following is in
docker-bench-security/tests/1_host_configuration.sh
:docker_users=$(grep 'docker' /etc/group)
=>docker:x:110:
docker_users=$(getent group docker)
=>docker:x:110:
docker_users=$(printf "%s" "$docker_users" | awk -F: '{print $4}')
=>``The last line destroys the content of
docker_users
.The text was updated successfully, but these errors were encountered: