rawmind/alpine-sysctl

By rawmind

Updated over 6 years ago

A base image to check and set hosts sysctl parameter.

Image
1

100K+

rawmind/alpine-sysctl repository overview

alpine-sysctl

A base image to check and set hosts sysctl parameter.

Build

docker build -t rawmind/alpine-sysctl:<version> .

Versions

Env variables

  • 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)

Usage

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> .

Tag summary

Content type

Image

Digest

Size

7 MB

Last updated

over 6 years ago

docker pull rawmind/alpine-sysctl:0.2-1