Fixed Bug
This commit is contained in:
2
harden
2
harden
@@ -250,6 +250,8 @@ function kernelSecurityModuleInit {
|
||||
}
|
||||
|
||||
function dockerInit {
|
||||
# Add user to docker group to avoid using sudo when running docker commands
|
||||
sudo usermod -aG docker "$USER"
|
||||
# Get all arguments passed to the function and store them in the dockerImages array
|
||||
local dockerImages=("$@")
|
||||
# Check if the dockerImages array is empty and return 0 if it is
|
||||
|
||||
Reference in New Issue
Block a user