AWS unleashes a new homegrown Linux that's good enough to bottle

Contain your enthusiasm, because ‘Bottlerocket’ is for containers and containers only

Amazon Web Services has created a second Linux distribution.

AWS already offers Amazon Linux, a general-purpose distribution currently in its second edition which can be run in a Docker container or with the Linux KVM, Microsoft Hyper-V and VMware ESXi hypervisors. This distro is said to be optimized to run inside the AWS cloud.

Now the internet giant has created Bottlerocket, which it advances as an excellent open-source OS on which to run containers alongside your preferred orchestration engine.

The Hello World post announcing the distro said AWS "saw a need for a Linux distribution designed from the ground up to run containers with a focus on security, operations, and manageability at scale".

Jumping off cliff

Red Hat Kubernetes shuffles towards the edge with 4.5 release of OpenShift


AWS has teased Bottlerocket since March 2020 when it acknowledged that it is not the first to do a Linux-for-containers, and cited CoreOS, Rancher OS, and Project Atomic as inspirations. It said its operation system is "the result of lessons we've learned over a long time running production services at scale in Amazon, and is colored by the lessons we've learned over the past six years about how to run containers".

Those lessons have led AWS to release an OS stripped of anything other than what's needed to run containers, a design the company said shrinks its attack surface.

Being purpose-built for running stuff within containers, rather than running non-containerized applications, means fewer packages are installed on the underlying system, which AWS said is a good thing because that makes life easier keeping the OS up to date and also reduces the chance of problems caused by dependencies. Basically, everything runs inside separate containers and the base system is rather bare, it seems.

"Rather than a package manager that updates individual pieces of software, Bottlerocket downloads a full filesystem image and reboots into it," AWS said. "It can automatically roll back if boot failures occur, and workload failures can trigger manual rollbacks."

Above the kernel, the OS was largely written in Rust to take advantage of that language's features that reduce the likelihood of unsafe memory accesses, race conditions between threads, and so on. SELinux is in place to take advantage of its above-and-beyond-normal isolation features.

The distro includes Device-mapper's verity target (dm-verity), which AWS described as "a Linux kernel feature that provides integrity checking to help prevent attackers from persisting threats on the OS, such as overwriting core system software". Also present is eBPF [PDF], which allows kernel modules to be replaced by safer kernel-level programs for low-level system operations.

AWS said Bottlerocket "enforces an operating model that further improves security by discouraging administrative connections to production servers" and is "suited for large distributed environments in which control over any individual host is limited".

To keep things accessible for sysadmins, an admin container is available. But AWS doesn't think you'll often need to work inside Bottlerocket. "The act of logging into an individual Bottlerocket instance is intended to be an infrequent operation for advanced debugging and troubleshooting."

Cowboy silhouette on a horse during sunset

Rancher rides off into the SUSE-set after acquisition by Linux outfit


AWS recommends using Bottlerocket with a container orchestrator. Kubernetes is the leading one, and AWS has therefore made a Bottlerocket build based on its own Enterprise Kubernetes Service (EKS). A bundle for the ECS service, and therefore AWS EC2 and Fargate, is in preview.

AWS has made the distro open source under the Apache 2.0 or MIT licence – you get to choose – and popped the lot on GitHub. AWS senior product manager Samartha Chandrashekar said: "We're looking forward to building a community around Bottlerocket on GitHub and welcome your feature requests, bug reports, or contributions."

It will be interesting to see if a community coagulates around the OS given that similar efforts like VMware's PhotonOS haven't been hits and even CoreOS was killed off by RedHat. ®

Similar topics

Other stories you might like

  • Meet Wizard Spider, the multimillion-dollar gang behind Conti, Ryuk malware
    Kremlin-linked crime-as-a-service crew is rich, professional – and investing in R&D

    Analysis Wizard Spider, the Russia-linked crew behind high-profile malware Conti, Ryuk and Trickbot, has grown over the past five years into a multimillion-dollar organization that has built a corporate-like operating model, a year-long study has found.

    In a technical report this week, the folks at Prodaft, which has been tracking the cybercrime gang since 2021, outlined its own findings on Wizard Spider, supplemented by info that leaked about the Conti operation in February after the crooks publicly sided with Russia during the illegal invasion of Ukraine.

    What Prodaft found was a gang sitting on assets worth hundreds of millions of dollars funneled from multiple sophisticated malware variants. Wizard Spider, we're told, runs as a business with a complex network of subgroups and teams that target specific types of software, and has associations with other well-known miscreants, including those behind REvil and Qbot (also known as Qakbot or Pinkslipbot).

    Continue reading
  • Supreme Court urged to halt 'unconstitutional' Texas content-no-moderation law
    Everyone's entitled to a viewpoint but what's your viewpoint on what exactly is and isn't a viewpoint?

    A coalition of advocacy groups on Tuesday asked the US Supreme Court to block Texas' social media law HB 20 after the US Fifth Circuit Court of Appeals last week lifted a preliminary injunction that had kept it from taking effect.

    The Lone Star State law, which forbids large social media platforms from moderating content that's "lawful-but-awful," as advocacy group the Center for Democracy and Technology puts it, was approved last September by Governor Greg Abbott (R). It was immediately challenged in court and the judge hearing the case imposed a preliminary injunction, preventing the legislation from being enforced, on the basis that the trade groups opposing it – NetChoice and CCIA – were likely to prevail.

    But that injunction was lifted on appeal. That case continues to be litigated, but thanks to the Fifth Circuit, HB 20 can be enforced even as its constitutionality remains in dispute.

    Continue reading
  • How these crooks backdoor online shops and siphon victims' credit card info
    FBI and co blow lid off latest PHP tampering scam

    The FBI and its friends have warned businesses of crooks scraping people's credit-card details from tampered payment pages on compromised websites.

    It's an age-old problem: someone breaks into your online store and alters the code so that as your customers enter their info, copies of their data is siphoned to fraudsters to exploit. The Feds this week have detailed one such effort that reared its head lately.

    As early as September 2020, we're told, miscreants compromised at least one American company's vulnerable website from three IP addresses: 80[.]249.207.19, 80[.]82.64.211 and 80[.]249.206.197. The intruders modified the web script TempOrders.php in an attempt to inject malicious code into the checkout.php page.

    Continue reading

Biting the hand that feeds IT © 1998–2022