-
Couldn't load subscription status.
- Fork 1k
Issue 521 restart policy #522
New issue
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
Issue 521 restart policy #522
Conversation
|
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it should work as expected. I tried it out with: ./docker-bench-security.sh -c check_5_14
|
I believe you just removed the original basic functionality :) |
You mean the plain check on Docker containers or rather the one on Docker services, without a swarm node? |
|
The plain check on Docker containers, and the test should fail when the 'on-failure' container restart policy is not set to '5'. |
|
Indeed it works. I mean, starting from the following Dockerfile I built a Docker image on it and ran a couples tests with resulting in the warning below, as expected and with |
|
The only issue is that in both cases ( |
|
So sorry, I've must have misread the code. |
No need to diversify unless you want to, I believe the message is understandable |
This fix double check for both the:
MaximumRetryCountMaxAttemptsproperties to be equal to 5.
Thus, fixing the #521 issue. The fix has been succesfully tested.