#29862·podman

Compat API /containers/{id}/json reports placeholder bridge network instead of attached user-defined networks (rootless, 6.1.0)

Author: karoyqiuCreated Sep 30, 2026Updated Sep 30, 2026

Issue Description

After upgrading from podman 5.8.3 to 6.1.0 (netavark 1.17.2 → 2.1.0, aardvark-dns 2.0.0 → 2.1.0), containers created after the upgrade report wrong network data through the Docker-compatible API. They are attached to a user-defined network, but the compat inspect endpoint returns a placeholder bridge entry with no ID or IP:

json
"Networks": {
  "bridge": {
    "IPAMConfig": null,
    "Links": null,
    "Aliases": null,
    "MacAddress": "",
    "DriverOpts": null,
    "GwPriority": 0,
    "NetworkID": "bridge",
    "EndpointID": "",
    "Gateway": "",
    "IPAddress": "",
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "DNSNames": null
  }
}

HostConfig.NetworkMode is bridge. Native podman inspect on the same container is correct (caddy:10.89.0.211).

Containers created before the upgrade, on the same user-defined network, still report correctly through the compat API: NetworkID holds the real hex ID, and the IP and gateway are populated.

This breaks tools that discover upstreams through the Docker API. In our case caddy-docker-proxy logs Container is not in same network as caddy, and every request to the affected services returns 503 no upstreams available.

Steps to reproduce the issue

  1. podman network create caddy (if it does not already exist)
  2. podman run -d --network caddy --name repro docker.io/library/alpine sleep 1d
  3. curl -s --unix-socket $(podman info -f '{{.Host.RemoteSocket.Path}}') http://d/containers/repro/json | jq '.HostConfig.NetworkMode, .NetworkSettings.Networks'
  4. podman inspect -f '{{range $k,$v := .NetworkSettings.Networks}}{{$k}}:{{$v.IPAddress}} {{end}}' repro

Describe the results you received

The compat API returns NetworkMode: "bridge" and a single bridge entry with an empty IPAddress (JSON above). Native inspect prints caddy:10.89.0.211.

Describe the results you expected

The compat API lists the caddy network with its real NetworkID, IPAddress, and Gateway. This is how it behaves for containers created under podman 5.8.3, for example (same host, same network, created before the upgrade):

json
"caddy": {
  "Aliases": ["gitea-ntfy", "2989b2ece1d4"],
  "MacAddress": "ea:1e:12:54:e6:41",
  "NetworkID": "92cc4104ca8763ebb525911a3a6ea364df65ea1cc9ef79f91e572c00312520d9",
  "Gateway": "10.89.0.1",
  "IPAddress": "10.89.0.161",
  "IPPrefixLen": 24
}

podman info output

- podman 6.1.0-2.el10 (upgraded from 5.8.3-1.el10), rootless
- network backend netavark 2.1.0 (from 1.17.2), aardvark-dns 2.1.0 (from 2.0.0)
- passt 0^20260728, crun 1.30.1, containers-common 6.0-3
- EL10, upgraded via `dnf upgrade` on 2026-09-30

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

Also reproduced for containers created by podman-compose 1.5.0; the plain podman run above rules it out.

Additional information

Possibly related to the Podman 6 change that moved rootless user-defined network port forwarding to pasta (#29727). Earlier, similar compat-networking issues: containers/podman#8073, containers/podman#9837, containers/podman#26313.

Source: podman-container-tools/podman