What DockerSlim Users Get Out of Slim's SaaS Platform

Scaling Your Container Game
Martin Wimpress
Dec 14, 2021

Anyone using DockerSlim understands the value of container optimization. What they might not appreciate is the additional value of using DockerSlim within the broader feature set and support functions of the Slim.AI SaaS offering.

Let’s map it out:

tl;dr: The Slim.AI early access program gives developers an opportunity to explore these benefits in an evaluation environment that also allows them to help shape the product roadmap for the platform. Slim.AI recently released an X-Ray report upload feature that creates a strong connection between DockerSlim and the Slim.AI platform.

In this blog post, we draw out some of the key reasons why a developer might benefit by using the free Slim.AI SaaS in conjunction with the DockerSlim open source project. But first, let’s look at why developers would choose to use DockerSlim in the first place.

DockerSlim as the Foundation

Developers are feeling the pressure to deliver containers that follow best practice guidelines. In the past, doing that would have required them to rearchitect the way the containers are made. For instance, this could mean manually optimizing a container via the Dockerfile, or building a new image using a smaller base image like Alpine. But let’s be honest: that’s not in their skillset. It’s an expectation that introduces friction, relearning, and developer lag. In short, it’s an unreasonable expectation to put on developers.

DockerSlim is a popular choice for developers because they can just insert it into their existing tooling and processes. Without having to change anything, they get optimized small containers that deploy faster and have much smaller attack surface, which makes them more observable in terms of auditing before shipping to production. They get the large well-instrumented containers they need for local, iterative development AND secured, production-ready containers without all that friction.

Developers know and are comfortable with several platforms and processes that just don’t make sense to get rid of. Ubuntu, my personal favorite, is one of those platforms. About 60-70% of the public cloud runs on Ubuntu, and it comes with a large pool of resources and a strong ecosystem that keeps developers loyal to it. DockerSlim allows them to achieve these smaller containers and importantly, iterate locally while still building on the familiar and stable Ubuntu OS. They can still satisfy the requirements of their DevOps or DevSecOps teams without having to add “container expert” to their resumé.

GitOps workflow is another example, where a group of containers that operate as a logical whole are revisioned, tagged, and deployed together in a known state Developers don’t want to move away from any base operating system that is well-understood in order to achieve best practices. DockerSlim and Slim.AI SaaS make this possible.

The Addition of the Slim.AI SaaS Platform

It’s probably useful here to pause and remember: Not all developers are container experts, nor do they need to be. So, there is a big benefit to developers in using the Slim.AI platform along with DockerSlim to optimize their containers. The Slim.AI platform gives developers a detailed view into what was removed from their containers in the optimization process. This is huge. DockerSlim shows you the before and after, but not what happened in between. The Slim.AI platform takes this a big step forward and gives developers a detailed view of the changes made to each file at each step of the process. This is a powerful tool for developers in optimization and debugging.

Another important consideration is that in the emerging multicloud world, workloads are moved around for optimization in order to take advantage of the best pricing and speed for deployment. An example would be moving images to AWS from Docker Hub to have container images closer to the deployment target. Slim.AI creates a meta-repository by connecting to the most popular container registries in one place, giving developers a single view of their container landscape as their images shift from one cloud provider to another. CI/CD becomes more of a reality for developers thanks to Slim.AI and DockerSlim.

A Community Member Story

Here’s an example: a data scientist in the DockerSlim community was getting pushback from their DevOps team because containers were very large, making them difficult to move as needed. Through watching live streams offered up in the Slim.AI community, they were able to use DockerSlim to optimize their containers, but the slimmed container initially emerged inoperable. Being a data scientist and not a container expert, they were stuck on what to do next.

Then, using the Slim.AI platform, the data scientist was able to explore and identify some files that had been removed by DockerSlim that were required for their container to run. They were able to create an inclusion in Slim.AI that retained these essential files in the slim container. The result was a fully operable container that was still reduced from 1.3 gb to 240 mb, making it much more agile, and making the DevOps team much happier.

The result was a fully operable container that was still reduced from 1.3 GB to 240 MB, making it much more agile, and making the DevOps team much happier.

The Future of the Slim.AI SaaS Platform

Looking ahead, the Slim.AI platform is slated to add some exciting features. A better user interface in the SaaS version will work to democratize the process. The flags that are needed for particular workflows will be easier to find. Failure modes will be easier to debug. Auditing, tracking, and a directory of files will empower developers to just be developers and continue being experts in what they do.

The new Slim.AI platform will also add the capability to create Collections: a defined group of containers that operate as a logical whole. With the Slim.AI platform, containers that iterate, move, and are revisioned at their own speed can also be explored, tagged, and deployed together in a known state. Connections to AWS ECR, GCR, and Docker Hub are already available, with more integrations coming soon.

When it comes to security, the Slim.AI platform has a solution that doesn’t require deep knowledge of the Linux container primitives, adding another important integrated feature for container management. DockerSlim stores AppArmor and SecComp files in a temporary folder that can be difficult to find. However, in the SaaS platform, a Docker Compose file can be generated that gives developers the YAML that is typically handwritten during the course of setting up a multi-container application, making it easier to manage and track changes in an application over time.

Join the Early Access Program

Joining the early access program is as easy as clicking here and registering. In addition to access to this powerful developer tool, you’ll also gain access to:

  • Twitch streams with tutorials about all things containers
  • Office hours in Discord for live interaction, troubleshooting, knowledge sharing, and community building
  • Developer experience events and engagements with partners

We care about the developer experience. It’s core to our values at Slim.AI. Using DockerSlim and participating in the Slim.AI SaaS early access program is a clear way to avoid unnecessary developer effort in the pursuit of improving the quality of your production ready containers. Joining is, of course, free. Just share with us what you’re learning, and help us make the platform better for every developer who just wants to write and ship great code.

About the Author

Martin Wimpress is leads community efforts at Slim.AI. Prior to Slim, he was Director of Engineering at Canonical, where he focused on supporting the Ubuntu community. He is project lead for the Ubuntu MATé Desktop project and contributes to QuickEmu and Retro Home. He livestreams regularly on Twitch at Wimpy's World.

Related Articles

5 Most Commonly Asked DockerSlim Questions

We enlisted DockerSlim expert and Slim.AI Developer Experience Engineer to dive into how container slimming works.

Primož Ajdišek

Technical Staff

Automatically reduce Docker container size using DockerSlim

REST Web Service example using Python/Flask

John Amaral

CEO

Automating DockerSlim in Your CICD Pipeline

Using GitHub Actions, you can refine container images automatically making them smaller, faster to load, and more secure by default – all without sacrificing any capabilities.

Nicolas Bohorquez

Contributor

Building DockerSlim into a Jenkins Pipeline

A step by step tutorial on building DockerSlim into your CI/CD pipeline.

Comparing Container Versions with DockerSlim and Slim.AI

See differences between your original and slimmed images

Pieter van Noordennen

Growth

Explore and analyze a Docker container with DockerSlim X-Ray

Understanding container composition

Martin Wimpress

Community

In the Media: DockerSlim and Slim.AI

Latest Mentions

Slim.AI and OSI: Why We Advocate for Open Source

Slim.AI continues its support of OSI and sponsors the OSI licensing API as a part of its ongoing advocacy for open source

Pieter van Noordennen

Growth

Slimming a Rails Application with DockerSlim

Dissect a simple Rails application container using DockerSlim to analyze, optimize, and deploy your product more quickly.

Theofanis Despoudis

Contributor

The DockerSlim Origin Story

How DockerSlim got its start at Docker's Global Hack Day, and the creation of Slim.AI.

Kyle Quest

CTO

Meet Martin Wimpress, Head of Community at Slim.AI

Martin talks developer experience, community development and personal projects

Growth and Gratitude: Series A Announcement

Sincere thanks to our community of developers and early adopters.

John Amaral

CEO