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
VGSources
Blog

How to Install and Use Podman on Ubuntu 24.04

A practical Ubuntu 24.04 guide to installing Podman, running containers, choosing rootless or rootful mode, configuring subordinate ID ranges, creating Quadlet systemd services, and enabling the optional API socket.
Length10 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Install Podman on Ubuntu 24.04 from Ubuntu’s standard repositories, then verify it with podman info and podman run -it hello. You can use Podman as an ordinary user (rootless) for isolated development, or as root (rootful) when a service needs host-level privileges. For containers that must survive reboots and be managed as services, use Podman Quadlet with systemd rather than hand-editing generated units.

This guide covers installation, first containers, rootless prerequisites, the differences between rootless and rootful state, routine lifecycle commands, Quadlet services, and the optional API socket. Ubuntu’s archive package version can change, so the commands below deliberately do not assume a particular Podman release.

As an Amazon Associate I earn from qualifying purchases.

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

What you need before installing

You need a running Ubuntu 24.04 system, a user account that can run sudo, and network access to Ubuntu’s package repositories. The standard Podman installation instructions cover Ubuntu 20.10 and newer, which includes Ubuntu 24.04. A separate third-party repository is not part of the documented installation path.

Decide which operating mode fits the job before creating containers:

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
  • Rootless: run the CLI as your normal account. This avoids making the container-management command itself host-root and keeps that user’s images and containers separate from everyone else’s.
  • Rootful: run the CLI through sudo. This is appropriate for administration that needs host-level privileges, privileged devices, or other resources unavailable to an unprivileged account.

You can use both modes on one machine, but they do not share container or image state. A container created by your normal account will not appear in a later sudo podman ps, and a root-created container will not appear in ordinary podman ps.

Install Podman from Ubuntu’s repositories

  1. Refresh package metadata.
    sudo apt-get update
  2. Install Podman.
    sudo apt-get -y install podman
  3. Check the installed command.
    podman --version
  4. Inspect host integration.
    podman info

podman --version reports the build selected by the Ubuntu 24.04 archive at the time you install or update it. The package version is not fixed by the installation instructions and may change as Ubuntu publishes updates, so scripts should not assume a particular version unless you have checked the package currently installed on your machine.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

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

podman info is the most useful first diagnostic. It shows the storage, runtime, networking, cgroup, and rootless or rootful context that Podman detected. If a later command behaves differently from an example, check this output before adding packages or changing configuration.

Run your first containers

Use the built-in smoke test

Run the small example container in the foreground:

podman run -it hello

The -i option keeps standard input open and -t allocates a terminal. Podman downloads the image if it is not already present, creates a container, and attaches your terminal. A successful run confirms that the client can reach an image registry, create storage, and start a container.

Start a web container in the background

This example publishes an HTTP service on the host:

podman run -d --name web -p 8080:80 docker.io/library/nginx:alpine
  • -d detaches and leaves the container running in the background.
  • --name web gives the container a stable, readable name instead of relying on an automatically generated one.
  • -p 8080:80 maps host port 8080 to port 80 inside the container. A request sent to port 8080 on the host is forwarded to the web server’s port 80 in the container.
  • docker.io/library/nginx:alpine identifies the image explicitly, including its registry and tag.

After the command returns, open the service through the host’s port 8080 using the client appropriate to your system. The command itself does not claim that the service is reachable from every network interface or firewall configuration; it only creates the Podman port mapping.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

Inspect, stop, and remove it

podman ps
podman ps -a
podman stop web
podman rm web
podman rmi IMAGE

podman ps lists running containers. Add -a to include containers that have exited. podman stop web asks the named container to stop, and podman rm web removes the stopped container record. Replace IMAGE in podman rmi IMAGE with the image name or ID you actually want to delete. Removing an image is separate from removing a container that was created from it.

Podman is daemonless for ordinary CLI work. You do not start a background Podman daemon before using podman run, podman ps, or podman stop. An API service is a separate, optional feature described later.

Understand rootless operation

Rootless Podman runs under your regular Linux account and automatically uses a user namespace. The account must have subordinate user and group ID ranges recorded in /etc/subuid and /etc/subgid. These ranges let processes inside the namespace receive mapped IDs without granting them the corresponding host privileges.

Check existing subordinate ranges first

Replace USERNAME with the account that will run rootless containers:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
grep '^USERNAME:' /etc/subuid
grep '^USERNAME:' /etc/subgid

Inspect the output before changing anything. Do not blindly append a second range that duplicates an existing allocation.

Add ranges when they are missing

If the account has no suitable entries, the Podman manual gives this example:

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
sudo usermod --add-subuids 10000-75535 USERNAME
sudo usermod --add-subgids 10000-75535 USERNAME

Use the real account name in place of USERNAME. The numeric range in this example is an allocation for namespace mapping; it is not a statement that every Ubuntu installation must use those exact numbers. Existing local allocations and administrator policy take precedence.

After changing account mappings, start a fresh login session before relying on the new configuration. Then run podman info as the ordinary user and retry the container command. If rootless startup still reports a mapping or namespace error, verify both files and confirm that the entries belong to the account running Podman.

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

What “root” means inside a rootless container

A process that has UID 0 inside a rootless container is mapped to the invoking host user by default. It is therefore not equivalent to host root. This distinction limits what the container can do to the host and is one reason rootless mode is useful for everyday development.

Rootless and rootful: choose deliberately

Concern Rootless Podman Rootful Podman
Command context Run as the normal user, without sudo. Run as root, commonly with sudo podman ....
Container and image state Stored in that user’s context and isolated from other users. Stored in root’s context and separate from every unprivileged user.
Host privilege Does not make the container’s namespace root equivalent to host root. Can perform host-level administration subject to the container and system configuration.
Privileged resources Best for ordinary development; some privileged ports, devices, and host integrations may be unavailable. Use when administration genuinely requires privileged ports, devices, or host resources.
Typical systemd scope A user service managed with systemctl --user. A system service managed by the administrator, normally under the system manager.
Visibility from the other mode Not listed by sudo podman ps. Not listed by an ordinary user’s podman ps.

When a command appears to “lose” a container, first check whether you changed users. Running podman ps and sudo podman ps queries different stores; neither output is a complete machine-wide inventory.

Use Podman for everyday container work

Keep the lifecycle commands straight

  • podman run creates a new container from an image and starts it.
  • podman ps shows running containers; podman ps -a includes stopped ones.
  • podman stop NAME stops a running container by name or ID.
  • podman rm NAME removes a stopped container.
  • podman rmi IMAGE removes an image reference when it is no longer needed.
  • podman info reports the current user context and host configuration.
  • podman --help and the installed manual show the flags supported by the exact package on your system.

Use a readable name for services you expect to operate repeatedly. Names make stop, status, logs, and removal commands easier to audit than opaque IDs. For exploratory work, an attached podman run -it is usually clearer than creating a persistent service definition.

Separate exploration from persistent services

A direct podman run command is ideal for a one-off test or a temporary development container. It records the resulting container, but it does not by itself describe the desired state to systemd. If a container must be started, stopped, and inspected as part of the host’s service lifecycle, use a Quadlet file instead of copying a generated unit and editing that copy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Run a container as a systemd service with Quadlet

Quadlet is Podman’s declarative systemd integration. You describe a container, pod, image, network, volume, or Kubernetes YAML deployment in a Quadlet file; a systemd generator translates that description into a service unit. Quadlet requires cgroup v2.

Create a rootless Quadlet container

  1. Create the per-user configuration directory.
    mkdir -p ~/.config/containers/systemd/
  2. Create the source file. Save this as ~/.config/containers/systemd/web.container:
[Container]
Image=docker.io/library/nginx:alpine
ContainerName=web
PublishPort=8080:80
  1. Reload the user systemd manager.
    systemctl --user daemon-reload
  2. Start the generated service. The basename web.container produces web.service:
    systemctl --user start web.service
  3. Check its status.
    systemctl --user status web.service

Edit the Quadlet source file when you need to change the image, name, or published port. Do not edit the generated service unit; the generator can recreate it during a reload and overwrite manual changes. After every source-file change, run systemctl --user daemon-reload and restart or start the service as appropriate.

Quadlet keys and behavior can vary with the Podman release shipped by your distribution. Consult the installed podman-systemd.unit manual for the exact keys supported by your package rather than copying options from a different release.

Rootful Quadlet placement

Administrator-managed rootful Quadlet files commonly live in /etc/containers/systemd/. They are generated for the system systemd manager rather than a user manager. Choose this location only when the service should run in the rootful context; placing a file there will not make a rootless container visible to root or vice versa.

Free tools Windows power users keep installed

One-click scans. No signup required.

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

Use the optional Podman API socket

Most local Podman commands do not need an API socket. Start one only when another client needs the Docker-compatible API. The socket gives that client control over containers in the corresponding user or root context, so treat it as a privileged control interface.

Rootless socket

  1. Start the user socket:
    systemctl --user start podman.socket
  2. Use the documented rootless endpoint:
    unix://$XDG_RUNTIME_DIR/podman/podman.sock

The endpoint is tied to the invoking user’s runtime directory and therefore reaches that user’s Podman state, not root’s.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

Rootful socket

  1. Start the system socket:
    sudo systemctl start podman.socket
  2. Use the rootful endpoint:
    unix:///run/podman/podman.sock

Do not expose an unauthenticated TCP endpoint merely for convenience. Unix sockets are the documented defaults, and access to the socket provides substantial control over containers in its security context.

Keep a user socket available after reboot

A user service normally depends on a login session. If a rootless API socket must be available after reboot without an active login session, enable lingering for the account:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
loginctl enable-linger USERNAME

Replace USERNAME with the account that owns the rootless service. This changes when the user systemd manager is started; it does not merge rootless and rootful container state.

Troubleshoot the common failure modes

podman is not found after installation

Confirm that the package command completed successfully, then open a new shell if your environment has not refreshed its command lookup. Run podman --version with the same account that will operate containers. If installation was performed in a different environment, repeat sudo apt-get update and sudo apt-get -y install podman on the target Ubuntu 24.04 system.

podman ps is empty but you know a container exists

Check whether it is stopped with podman ps -a. Then check the user context: compare ordinary podman ps -a with sudo podman ps -a. Rootless and rootful stores are intentionally separate, so an empty result in one context does not prove that the container was deleted.

Rootless startup reports UID or GID mapping problems

Inspect /etc/subuid and /etc/subgid for the actual account. Add non-duplicate ranges with usermod --add-subuids and --add-subgids only when needed, then start a fresh login session and recheck podman info. Avoid adding arbitrary overlapping ranges that could conflict with another account.

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

A Quadlet unit does not appear

Check that the file is in the correct directory and uses the expected basename. A rootless file belongs under ~/.config/containers/systemd/ and is managed with systemctl --user; a rootful file belongs under /etc/containers/systemd/ and is managed by the system manager. Run the appropriate daemon-reload, then inspect the generated service status. Verify that the host uses cgroup v2, which Quadlet requires.

A service change has no effect

Edit the .container source, not the generated .service. Run the matching systemd manager’s daemon-reload, then restart the service. If an option is rejected, consult the installed podman-systemd.unit manual because supported keys differ between Podman releases.

A client cannot connect through the API

Confirm that you started the socket in the same context the client expects. Rootless clients use unix://$XDG_RUNTIME_DIR/podman/podman.sock; rootful clients use unix:///run/podman/podman.sock. Starting the rootful socket will not expose rootless containers. For a socket that must exist before login, configure user lingering and then verify the user service.

A practical operating checklist

  • Install from Ubuntu’s repositories with apt-get update followed by apt-get -y install podman.
  • Verify both the binary and host integration using podman --version and podman info.
  • Run podman run -it hello before troubleshooting a larger image or service.
  • Use a normal account for rootless work and remember that its state is separate from sudo podman.
  • Check subordinate UID and GID entries before adding mappings.
  • Use direct podman run for experiments and Quadlet for declarative systemd services.
  • Keep Quadlet source files under the correct user or system directory and reload the matching systemd manager after edits.
  • Start the API socket only when a client needs it, prefer Unix sockets, and avoid unauthenticated TCP exposure.

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.

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

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 quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

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.