"Function not implemented" errors when trying to use `unshare` syscall in Openshift 4.11 or greater

Solution Verified - Updated -

Issue

  • Operations in pods that previously succeeded in 4.10.x may now fail in 4.11
  • Some possible symptoms may look like:
sh-5.1$ unshare
unshare: unshare failed: Function not implemented

or

sh-5.1$ podman create ubi8 ls
ERRO[0009] While applying layer: ApplyLayer exit status 1 stdout:  stderr: Error creating mount namespace before pivot: function not implemented 

Environment

OpenShift Container Platform 4.11.0 and greater

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content