M
MercyNews
Home
Back
Running Docker on Linux Kernels Pre-3.17: The getrandom Fix
Technology

Running Docker on Linux Kernels Pre-3.17: The getrandom Fix

A technical guide explains how to bypass compatibility issues when running modern Docker containers on legacy Linux kernels lacking specific system calls.

HabrDec 26
5 min read
📋

Quick Summary

  • 1Users attempting to run modern Docker containers on older Linux kernels often encounter compatibility issues due to missing system calls.
  • 2Specifically, Linux kernels versions older than 3.17 lack the getrandom and getentropy system calls, which are required by many contemporary applications.
  • 3This limitation prevents the execution of software that relies on these specific cryptographic functions for secure random number generation.
  • 4A technical solution has been identified that allows these programs to run despite the kernel's limitations.

Contents

The Compatibility ChallengeThe Solution: A Compatibility LayerImplementation and ScopeConclusion

Quick Summary#

Running modern software on legacy infrastructure often presents compatibility challenges, particularly regarding system calls. A specific issue arises when attempting to execute programs or containers that require getrandom and getentropy functions on Linux kernels older than version 3.17. These system calls are essential for generating secure random numbers, a requirement for many contemporary applications.

Without these calls, the execution fails, effectively blocking the use of newer software on older systems. However, a workaround exists that bridges this gap. This solution is versatile, applicable to Docker containers as well as general software execution on legacy kernels. It allows administrators to maintain older infrastructure while deploying modern applications that have stricter dependency requirements.

The Compatibility Challenge#

Modern software development often assumes a relatively recent operating system environment. When developers build applications, they frequently utilize standard library functions that interface with the kernel. One such area involves cryptographic random number generation. For years, dev/random and dev/urandom were the standard interfaces. However, newer standards prefer the getrandom and getentropy system calls for improved security and reliability.

The problem emerges when these modern applications are deployed in environments running older Linux kernels. Specifically, any kernel version prior to 3.17 does not include these system calls in its kernel space. When a program attempts to invoke a function that triggers these calls, the kernel cannot fulfill the request. This results in an error, often manifesting as a crash or a failure to start the process entirely. This is a common hurdle for users attempting to run newer Docker images on older host systems.

The Solution: A Compatibility Layer#

To address the absence of these critical system calls, a specific technical solution has been developed. This solution acts as a compatibility layer, intercepting calls to getrandom and getentropy and translating them into operations that the older kernel can understand. Instead of relying on the kernel's direct implementation, this workaround typically utilizes the existing /dev/urandom interface, which has been a staple of Linux for much longer.

The implementation of this fix is not limited to a single use case. It is designed to be broadly applicable, covering various scenarios where legacy kernels must support modern software. The primary applications include:

  • Running Docker containers that have strict library dependencies.
  • Executing standalone binaries compiled against newer glibc versions.
  • Supporting legacy systems that cannot be upgraded due to hardware constraints.

By providing a translation layer, the gap between the application's expectations and the kernel's capabilities is effectively closed.

Implementation and Scope#

The solution is designed for broad utility, extending beyond just Docker environments. While containerization is a primary driver for this need due to the portability of images, the underlying issue affects any binary requiring these specific calls. The fix ensures that the program receives the expected return values, allowing execution to proceed as if the modern system calls were natively present.

This approach is particularly valuable for organizations or individuals maintaining Linux systems that have reached their end of life but still serve critical functions. Rather than performing a risky kernel upgrade or a full system migration, this compatibility fix allows the system to remain stable while accommodating newer software loads. It effectively extends the lifespan of legacy infrastructure, providing a stop-gap measure for environments where upgrading the kernel is not a viable option.

Conclusion#

The inability of Linux kernels older than version 3.17 to support getrandom and getentropy system calls presents a significant barrier to running modern software. However, the existence of a compatibility workaround demonstrates that these barriers are not insurmountable. By bridging the functionality gap, users can successfully deploy contemporary applications, including Docker containers, on legacy systems.

This technical capability is crucial for maintaining operational flexibility. It allows for the gradual migration of infrastructure or the continued use of stable, older hardware without sacrificing access to the latest software advancements. Ultimately, this solution highlights the adaptability of the Linux ecosystem in reconciling the demands of modern development with the realities of existing infrastructure.

Frequently Asked Questions

Programs fail because they attempt to use getrandom and getentropy system calls, which are not present in Linux kernels older than version 3.17.

A compatibility fix is used to intercept the missing system calls and translate them for the older kernel, allowing the containers to execute.

#linux#synology#kernel#docker#ld_preload

Continue scrolling for more

AI Transforms Mathematical Research and Proofs
Technology

AI Transforms Mathematical Research and Proofs

Artificial intelligence is shifting from a promise to a reality in mathematics. Machine learning models are now generating original theorems, forcing a reevaluation of research and teaching methods.

Just now
4 min
173
Read Article
IMF Warns AI Could Widen Inequality, Urges Worker Support
Economics

IMF Warns AI Could Widen Inequality, Urges Worker Support

The International Monetary Fund has issued a stark warning about the economic impact of artificial intelligence, urging governments to strengthen social safety nets for workers facing displacement.

41m
3 min
6
Read Article
Politics

DHS Deportation Reels Are Getting Copyright Strikes for Unlicensed Music Use

Article URL: https://reason.com/2026/01/11/the-deportation-playlist-is-mostly-stolen/ Comments URL: https://news.ycombinator.com/item?id=46612934 Points: 12 # Comments: 0

1h
3 min
0
Read Article
Technology

Big Tech is poaching energy talent to fuel its AI ambitions

Hires of energy-related talent by Big Tech was 30% higher in 2025 than pre-AI levels.

1h
3 min
0
Read Article
Ethereum Poised to Outperform Bitcoin in 2026
Cryptocurrency

Ethereum Poised to Outperform Bitcoin in 2026

A significant shift in market dynamics could see Ethereum close the performance gap with Bitcoin throughout 2026, driven by changing capital flows and network usage.

1h
5 min
6
Read Article
Recrutement : pourquoi les candidats se dopent à l’IA
Technology

Recrutement : pourquoi les candidats se dopent à l’IA

Les futures recrues disent utiliser l’intelligence artificielle, première compétence exigée par les employeurs dans le monde, parce que trois recruteurs sur quatre s’en servent déjà, majoritairement pour rédiger leurs petites annonces, constate, dans sa chronique, la journaliste du « Monde » Anne Rodier.

2h
3 min
0
Read Article
Ben Horowitz says that investing teams shouldn't be 'too much bigger than basketball teams'
Technology

Ben Horowitz says that investing teams shouldn't be 'too much bigger than basketball teams'

Ben Horowitz said investment teams should be the size of a playing five in basketball. Phillip Faraone/Getty Images for WIRED Ben Horowitz said his rule of thumb is about five people on an investing team. He said Andreessen Horowitz maintains lean teams and strong communication across verticals. AI tools are enabling startups and VCs to thrive with fewer employees. Ben Horowitz is a big fan of tiny teams. On an episode of the A16z podcast, the Andreessen Horowitz cofounder shared how his venture capital firm maintains a lean operation despite being one of the world's largest. "An investing team shouldn't be too much bigger than a basketball team," he said, referring to advice he got from famed American investor David Swensen in 2009. He added, "A basketball team is five people who start, and the reason for that is the conversation around the investments really needs to be a conversation." Horowitz cofounded the Silicon Valley VC firm with Marc Andreessen in 2009. Before A16Z, he ran enterprise software company Opsware, which Hewlett-Packard acquired. A16z has backed marquee companies including Meta, Airbnb, GitHub, and Coinbase. The VC said he always kept the basketball team size in mind but also knew that the firm had to expand to keep up with how "software was eating the world," his signature phrase. The solution was to split the firm into different investment verticals. To maintain good communication, staff attend other teams' meetings when investment themes overlap. The firm also organizes a two to three-day offsite twice a year, "with not much agenda." Horowitz said that people who join them from other firms say that A16Z has "less politics" than firms with 10 or 11 people because his firm has a culture where politicking is "disincentivized." A16z might have been early to the tiny team trend, but it's catching on fast with VCs and startups across the world. Startups are actively seeking to stay small, with many having fewer than 10 people. Founders told Business Insider that AI and vibe coding tools have boosted their productivity, allowing them to get things done with far fewer people. Less politics and bureaucracy are also big pluses, they say. "We're going to see 10-person companies with billion-dollar valuations pretty soon," OpenAI CEO Sam Altman said in February 2024. "In my little group chat with my tech CEO friends, there's this betting pool for the first year there is a one-person billion-dollar company, which would've been unimaginable without AI. And now will happen." Read the original article on Business Insider

2h
3 min
0
Read Article
Tempest: American Missile Buggy Scores 20+ Kills in Ukraine
World_news

Tempest: American Missile Buggy Scores 20+ Kills in Ukraine

A new American off-road buggy equipped with guided missiles has entered service in Ukraine, where crews report significant success against Russian drone threats. The Tempest system offers mobile air defense against Shahed loitering munitions.

2h
5 min
7
Read Article
Creator income inequality is rising as top influencers rake in big paydays from brands
Economics

Creator income inequality is rising as top influencers rake in big paydays from brands

Top creator Jimmy Donaldson, a.k.a. MrBeast, at the "Beast Games" season 2 premiere. JC Olivera/Variety via Getty Images Creator income inequality is rising, with the top 1% earning 21% of brand spending, per new CreatorIQ data. The trend has continued in each of the last two years. Big brands often favor top creators, making it harder for smaller influencers to compete. Creators are raking in the ad dollars — but the wealth is being shared less and less equally. New data from the influencer-marketing platform CreatorIQ shows that the income gap in the creator economy is widening. The top 10% of creators on CreatorIQ's platform received 62% of ad payments in 2025, up from 53% in 2023. Similarly, the top 1% received 21% of the total ad payment volume, up from 15% in 2023. CreatorIQ, which included the 2025 data in a new report released on Wednesday, examined 65,000 payments over a three-year period from brands and agencies to creators who received flat payments through its software. The data reflects an overall pattern in the creator economy. Brands are shifting more of their marketing dollars to creators, with payments more than doubling over the last two years in CreatorIQ's dataset. Overall, US advertiser spending on creators was expected to hit $37 billion in 2025, according to a November report from the Interactive Advertising Bureau. At the same time, much of the ad money is going to a relatively narrow segment of top talent. While many creators also make money outside influencer marketing — such as from subscriptions or direct payments from platforms like YouTube — brand sponsorships are generally the industry's top revenue source. Jasmine Enberg, cofounder and co-CEO of Scalable, a new media company focused on the creator economy, said the numbers show the industry is starting to resemble traditional entertainment, where top players rake in substantial sums, leaving smaller ones to compete for the leftovers. Enberg said the divide would only grow as big creators get larger projects, such as TV campaigns or Netflix deals. "We need to empower brands to diversify their investment more confidently," Brit Starr, CMO of CreatorIQ, said of the industry. CreatorIQ's survey of 300 creators found that only 11% earned $100,000 or more. About one-quarter of the creators surveyed fell into each of the "$50,000 to $100,000" and the "$25,000 to $50,000" categories. CreatorIQ's report included additional data points that help explain the current dynamics of the creator economy. The number of creators receiving payments within CreatorIQ's network more than doubled from 2023 to 2025, which could indicate an overall surge in influencers entering the market. While the average earnings per creator rose to $11,400 in 2025 from $9,200 in 2023, the median actually declined slightly, from $3,500 to $3,000. That suggests that top creators are pulling the average higher, while the typical creator is earning less. What's driving the pay gap Enberg said major advertisers have contributed to the sector's income inequality because they're more likely to allocate their budgets to a small number of top creators. Talent managers who spoke with Business Insider said earnings distribution had been lumpy. Budgets have definitely grown, but they haven't kept pace with the expansion of the creator population, said Kyle Hjelmeseth, CEO of G&B Digital Management. "There are now many more small accounts that will take $25 to post, for example," he said. Meanwhile, advertisers often spend a large chunk of their influencer budgets directly with social media platforms, making it harder for creators — especially smaller ones — to develop direct and potentially lasting relationships with brands, creator-industry insiders said. Becca Bahrke, the CEO of Illuminate Social, a creator management firm, said the CreatorIQ payment concentration data reflect what she's seeing among her own clients. She said she'd seen some full-time creators take the off-ramp to a different job. "You may have earned over $400,000 in one year, but if you're not showing up consistently on the platform, treating it as a full-time job, you can see the earnings fall," Bahrke said. "It's a lot of work. It's not for the faint of heart." Read the original article on Business Insider

2h
3 min
0
Read Article
Iran's Internet Shutdown: The Digital Iron Curtain
Politics

Iran's Internet Shutdown: The Digital Iron Curtain

Tehran's digital landscape transformed from a controlled 'halal internet' to a near-total blackout. This is the story of how activists are using smuggled satellite technology to pierce the digital veil and get vital information out.

2h
5 min
6
Read Article
🎉

You're all caught up!

Check back later for more stories

Back to Home