A base image to check and set hosts sysctl parameter.
docker build -t rawmind/alpine-sysctl:<version> .
0.2-1
(Dockerfile).0.1-1
(Dockerfile).
- SYSCTL_KEY="" # Mandatory: Set sysctl key.
- SYSCTL_VALUE=0 # Mandatory: Set sysctl key desired value.
- SYSCTL_FORCE=0 # Set to 1 to force sysctl overwrite key value.
- KEEP_ALIVE="0" # Set to 1 to keep container alive. (to run in k8s)
This image basically, upgrade host sysctl key value if it's lower than desired.
docker run -t \
-e "SYSCTL_KEY=KEY" \
-e "SYSCTL_VALUE=VALUE" \
--privileged \
rawmind/alpine-sysctl:<version> .