#13245·portainer

Podman x-podman.mac_address is ignored when deploying stacks via Portainer

Author: Torx999Created Jul 15, 2026Updated Sep 21, 2026
Labelskind/questionpodmanbot/kind-classification-complete

Before you start please confirm the following.

  • Yes, I've searched similar issues on GitHub.
  • Yes, I've checked whether this issue is covered in the Portainer documentation.

Problem Description

Portainer ignores the Podman-specific Compose extension x-podman.mac_address when deploying a stack.

The deployment succeeds, but the configured MAC address is not applied to the container. Instead, Podman assigns a random MAC address.

The issue occurs regardless of whether the stack is deployed directly from the Web Editor or automatically from a Git repository.

Expected Behavior

When x-podman.mac_address is specified, Portainer should preserve the option and pass it to Podman so that the configured MAC address is assigned to the corresponding network.

Actual Behavior

x-podman.mac_address is silently ignored.

The standard Compose option mac_address: works correctly.

However, this option cannot be used when a container is connected to multiple networks, because Podman/Docker interprets it as a global container MAC address rather than a per-network MAC address.

Steps to Reproduce

Steps to Reproduce

  1. Create a Podman stack in Portainer EE.
  2. Use a Compose file containing the Podman-specific x-podman.mac_address extension.
  3. Deploy the stack either:
    • from the Portainer Web Editor, or
    • from a Git repository.
  4. Verify the assigned MAC addresses using:

podman inspect

or

podman network inspect

Expected Result

The container is assigned the MAC address(es) defined in x-podman.mac_address.

Actual Result

The x-podman.mac_address option is ignored. Podman assigns automatically generated MAC addresses instead, while the deployment completes successfully without any warning or error.

Portainer logs or screenshots

No response

Portainer version

2.43.0

Portainer Edition

Business Edition (BE/EE) with 5NF / 3NF license

Platform and Version

Portainer EE: 2.43.x (also observed in earlier versions) * Runtime: Podman * Deployment methods:     * Web Editor     * Git Repository * Compose provider: podman-compose

OS and Architecture

ubuntu 25.10, AMD64

Browser

No response

What command did you use to deploy Portainer?

bash

Additional Information

Why this is important

x-podman.mac_address is required when a container is attached to multiple networks and each network interface requires its own static MAC address.

Without support for this Podman-specific extension, it is currently impossible to deploy such containers correctly through Portainer.

Example services: example: image: alpine:latest command: sleep infinity

 networks:
      mgmt-net:
        x-podman.mac_address: "5a:4f:ac:55:57:e1" 
      dmz-net:
        x-podman.mac_address: "be:7b:97:17:78:d6" 

networks: mgmt-net: external: true

dmz-net: external: true

Result

The stack deploys successfully, but the configured MAC addresses are ignored and automatically generated MAC addresses are assigned instead.

Additional information

Using the standard mac_address option works correctly, confirming that Portainer is capable of passing MAC addresses to Podman. The issue appears to be specific to the Podman extension x-podman.mac_address.