glibc-dynamic
Glibc-Dynamic Overview
Secure your stack with a hardened glibc-dynamic image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies.
Use this image in a Dockerfile as a secure runtime base for dynamically-linked binaries with dependencies (These are listed in the .so file). For example, you can use this image to run a compiled Go (Golang) binary, and build the most secure, vulnerability-free application possible. Learn how it's done
Try It Out
Before we can take the Minimus glibc-dynamic image for a test run, we'll need a dynamic binary to run. If you have a binary ready on hand, you can skip the next step. Otherwise, download an example and compile the code:
gcc hello.c -o dynamicbinIf you want to first check that your file includes dynamic links, run ldd dynamicbin (where dynamicbin is simply the program name). You should see the dependencies listed.
Now you are ready to build a minimal, secure image using the Minimus glibc-dynamic image. Save this Dockerfile to your directory:
FROM reg.mini.dev/glibc-dynamic
# Set the working directory inside the container
WORKDIR /app
# Copy the static binary into the image
COPY dynamicbin /app/dynamicbin
# Set the default command to run the binary
CMD ["/app/dynamicbin"]Next, build your custom image and run it. Note that the period . specifies the current directory as the build context:
docker build -t minimus-dynamic-image .
docker run --rm minimus-dynamic-imageYou should see the message: "Minimus says hello world"
Technical Considerations
The glibc-dynamic image provided by Minimus has no alternative in Docker Hub. It can be used as a minimal alternative for larger images that are used for both compiling the code and running it, for example Golang.
Glibc-dynamic built by Minimus:
- The image can be used as a minimal, secure runtime base for any dynamically-linked glibc binary.
- Runs as non-root by default.
- Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
The Payoff
- A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.