# Client banned Docker? One alias saves half your deployment

> The other half depends on user permissions, network ports and systemd on the client's machine, and all of them should be checked before you arrive on site.

Original: https://fdetimes.net/en/tools/podman-rootless-client-docker-ban/

Podman's official documentation contains a sentence that every FDE who has had Docker blocked by a client's security team should know by heart: most users can simply set `alias docker=podman` and run without any problems. The promise is nearly true, and the "nearly" is what decides how your deployment goes.

Your README, Makefile and demo scripts were almost certainly written around the `docker` command. The client's machine, meanwhile, is usually a Linux VM run by the infrastructure team, with an account that has no root access and a policy that forbids any daemon running as root.

Knowing just enough about Podman lets you deploy on schedule without rewriting all of your tooling.

## Why the security team will sign off

Podman's man page calls it a simple, daemonless tool with a full-featured container engine.

Red Hat explains the security reasoning behind that design: without a daemon, ordinary users can run containers without having to interact with a daemon owned by root.

Podman containers can run as root or as an unprivileged user. In rootless mode, an analysis by Dimitris Vagiakakos on NVISO Labs points to the most important mechanism: user IDs inside the container are mapped to other, unprivileged user IDs on the host.

According to NVISO, this mapping helps limit the damage if a container escape occurs.

Containers created by an ordinary user are also invisible to other users, and Podman running as root cannot see or manage them either. Those three points belong in your email to the security team: no root daemon, remapped UIDs, and each user's containers isolated from everyone else's.

## A trial deployment, step by step

Take a hypothetical case: you bring the image of an inference API to a client's VM. The API listens on port 80, and you log in with an account that has no sudo. Before running anything, check whether the user has been granted subordinate UID/GID ranges:

```bash
grep "$USER" /etc/subuid /etc/subgid
```

Rootless mode needs many UIDs and GIDs per user. The project's documentation warns that if `/etc/subuid` and `/etc/subgid` are not set up, podman commands are likely to fail, and that this is common at companies using identity providers that do not manage those two files.

If the command returns nothing, open a ticket with the client's admin the week before. Do not wait until the morning you arrive on site.

Only then come the alias and the run command:

```bash
alias docker=podman
docker run -d -p 8080:80 my-inference-api
```

Port 8080 is the choice because rootless Podman cannot create containers that bind to ports below 1024. If the client needs port 80 or 443, ask beforehand whether their load balancer or reverse proxy can forward from a higher port.

The third trap is harder to spot. Since Podman 5.0, pasta has been the default networking tool for rootless containers, and it has a known limitation when a container connects to the host's own IP address. If your API calls a database on the same machine via the host IP, test that exact connection as early as possible.

**Key point:** Renaming the command is easy; what needs preparing is permissions, ports and networking on the client's machine.

## Who keeps the containers alive once you have gone home?

No daemon also means no process that restarts containers after the machine reboots. Podman solves this with systemd: Red Hat describes the integration between the two as a way to generate control units for containers so they run in the background without a separate daemon.

You place a file describing the container in the rootless user's `~/.config/containers/systemd/`, Quadlet generates a unit file, and that unit is started and managed with `systemctl` like any other systemd service. The machine must use cgroup v2, so check in advance:

```bash
stat -fc %T /sys/fs/cgroup   # cgroup2fs means cgroup v2
```

One more caveat before you make promises to the security team. NVISO stresses that SELinux-based isolation only works on machines where SELinux is installed, enabled and in enforcing mode. On a VM with SELinux turned off, leave this layer of protection out of your argument.

## Five questions for the infrastructure team before the visit

The trial deployment above boils down to a short checklist:

| Question for the client | Why ask |
|---|---|
| Does the user have ranges in `/etc/subuid` and `/etc/subgid`? | Without them, podman commands are likely to fail |
| Must the service listen on a port below 1024? | Rootless mode cannot bind these ports |
| Does the container call any service via the host's own IP? | This kind of connection hits a known pasta limitation |
| Does the machine run cgroup v2? | Quadlet requires cgroup v2 |
| Is SELinux in enforcing mode? | SELinux isolation only applies then |

A self-test: for the last client VM you worked on, answer these five questions without logging in. Any you cannot answer are the ones to put to the client's infrastructure team in your next email.

## What to learn first, and how to show it on a CV

The order to learn it in: set up a Linux VM, create a user without sudo, grant subuid/subgid, rerun your old scripts through the alias, then move one container to Quadlet. Most of the errors you would meet on a client's site show up in this exercise, at a far lower cost.

When reading FDE job postings, look for phrases such as on-prem, customer infrastructure or security constraints: that is where this skill gets paid. On a CV, a specific line such as "deployed services with rootless Podman and systemd on client machines without root access" carries far more weight than the word "Docker" sitting alone in the skills section.

Clients who ban Docker rarely ban containers. They ban a root process they cannot control, and the FDE who understands that difference will be the first to get code into production.

**Try this week:**

- Create a Linux VM, log in as a user without sudo, and rerun your entire deployment script with alias docker=podman
- Write a pre-visit checklist covering the user's subuid/subgid, host ports of 1024 and above, container connections to the host IP, cgroup v2 and SELinux status
- Move a container you currently run by hand to a Quadlet file in ~/.config/containers/systemd/ and start it with systemctl

## Sources

- [Podman documentation (docs.podman.io)](https://docs.podman.io/en/latest/)

- [podman(1) man page, docs.podman.io](https://docs.podman.io/en/latest/markdown/podman.1.html)

- [Shortcomings of Rootless Podman (rootless.md), containers/podman](https://github.com/containers/podman/blob/main/rootless.md)

- [What is Podman? (Red Hat)](https://www.redhat.com/en/topics/containers/what-is-podman)

- [podman-systemd.unit(5), docs.podman.io](https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html)

- [Rootless Containers with Podman (Dimitris Vagiakakos, NVISO Labs)](https://blog.nviso.eu/2026/02/03/rootless-containers-with-podman)

- [containers/podman (GitHub)](https://github.com/containers/podman)
