Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk3 min

Why Rootless Podman Export Can Shift Keep-Id File Owners Yet Succeed

A successful exit status does not confirm that a rootless Podman export preserved the ownership values you expected. Here’s how to verify the mappings and archive headers.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A rootless podman export that reports exit code 0 may still produce a tar archive whose numeric file owners differ from those expected. One practitioner report describes that outcome for a container using --userns=keep-id, but Podman’s documentation does not establish it as a universal rule or explain how that report’s archive owner IDs were encoded. Treat it as a case to verify against your own Podman version and UID/GID mappings—not as proof that every keep-id export shifts ownership.

What the reported result does—and does not—show

A HomelabPM/DEV Community report describes shifted owners in a rootless container export and an exit status of 0. The report’s full page was not available for verification, so its Podman version, host configuration, exact namespace mapping and tar-header metadata cannot be confirmed. It is evidence of a reported case, not a reproducible general property of Podman. Read the case report.

As an Amazon Associate I earn from qualifying purchases.

Exit code 0 says the command did not report failure through its exit status in that case. It does not, by itself, establish that the resulting archive contains the ownership values you intended. The official export reference describes the operation as writing a container filesystem to a tar archive; it does not document a guarantee that archive UID/GID values are converted to the invoking host user’s IDs. Podman export manual.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why keep-id does not settle archive ownership

Rootless Podman runs containers in a user namespace. Numeric IDs inside that namespace can correspond to different numeric IDs on the host, with subordinate UID/GID ranges commonly involved. Podman’s --userns=keep-id mode maps the invoking user’s UID and GID to the same values inside the container by default; optional uid= and gid= settings can select container IDs instead. This controls namespace mapping, not necessarily how a separate archive operation writes ownership into tar headers. Podman 6.1.3 run manual and the rootless tutorial explain the mapping distinction.

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Keep the ownership views separate when diagnosing the symptom: an owner displayed inside the container, the ID as translated through the user namespace, the host-visible owner, and the numeric UID/GID stored in the archive header are not automatically interchangeable. In particular, a name shown by ls may be resolved through an account database, obscuring the underlying number.

Check the archive and mappings before changing ownership

The following is a diagnostic workflow, not a claim that a particular workaround fixes the reported case. Record enough detail to distinguish a namespace-mapping difference from an archive serialization issue.

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.
  1. Record the Podman version and host identity: run podman version, id, and note whether Podman is running rootless. Record the applicable subordinate ranges from /etc/subuid and /etc/subgid.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Inspect the container configuration with podman inspect CONTAINER. Note the user-namespace mode and whether keep-id uses default IDs or explicit uid=/gid= values. Where appropriate, inspect namespace mappings through podman unshare or the relevant /proc/self/uid_map and /proc/self/gid_map.

    Rank #3
    SSK Portable SSD 500GB External Solid State Hard Drive USB C Up to 1050MB/s
    • Capacity Display Variance: 500GB external ssd often appears as around 465GB on Windows. MacOS can show full 500 GB capacity. This is binary calculation difference and doesn’t affect SSD hard drive actual physical storage
    • 1050 MB/s Speed: Instantly access to your files with blazing-fast 10Gbps external SSD read up to 1050MB/s and write up to 1000MB/s. LED Light indicates USB SSD instant activity
    • Data Security: Solid state drives S.M.A.R.T. health diagnostics​ and adaptive TRIM optimizing data block management ensures consistent write speeds and extends the longevity of the portable SSD
    • USB-C & USB-A Cable: Both cables featuring rapid USB 3.2 Gen2, this USB SSD effortlessly bridges devices, enabling seamless cross-platform file transfers and backup between computers, smartphones, tablets and iPhone
    • Always Fast: No slowdowns for large file transfers. With SLC caching (25% of current available capacity allocated as high-speed cache), this external SSD delivers steady 10Gbps for transfers within the cache capacity
  3. Compare numeric ownership in the container filesystem with the numeric UID/GID values in the exported tar headers. Use numeric output rather than owner names, and preserve the archive unchanged while investigating so you can compare the original metadata.

  4. Confirm that podman export is the artifact you need. It exports a container filesystem as a flattened tar archive. If you instead need an image archive with layers, history and tags, podman save is the relevant operation; it is not a drop-in replacement for a filesystem export. The export manual describes this distinction.

    Rank #4
    Sale
    Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
    • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
    • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
    • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
    • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
    • The available storage capacity may vary.
  5. If the problem concerns files or volumes on the host rather than archive headers, consult Podman’s guidance on podman unshare and user-namespace ownership separately. Those troubleshooting steps address host-side ownership handling; they do not, on their own, establish how podman export should encode tar owners. Podman troubleshooting guide.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What can be concluded from the evidence

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.